public APath(ANode a, ANode b, float cost) { this.A = a; this.B = b; this.cost = cost; a.AddPaths(this); b.AddPaths(this); }