package main type Edge struct { To *Node } func (self *Edge) Cost() int { return (self.To.Data.Population / 100) }