public bool Has(GraphNode node1, GraphNode node2) { return(node1 == From && node2 == To || node1 == To && node2 == From); }
public GraphWay(GraphNode FromNode, GraphNode ToNode, double WayWeight, bool oriented) : this(FromNode, ToNode, oriented) { weight = WayWeight; WeightIsLen = false; }
public bool Has(GraphNode node) { return(node == From || node == To); }