public void LinkTo(UnitGraphNode otherNode, double multiplier) { Links.Add(otherNode, new UnitGraphLink(otherNode, multiplier)); otherNode.Links.Add(this, new UnitGraphLink(this, 1.0 / multiplier)); }
public UnitGraphLink(UnitGraphNode otherNode, double multiplier) { _otherNode = otherNode; _multiplier = multiplier; }