public override string ToString() { if (StartRoute == null) { return(End.ToString()); } return(StartRoute.ToString() + End.ToString()); }
public bool Contains(RouteNode node) { if (End == node) { return(true); } return(StartRoute != null && StartRoute.Contains(node)); }
internal bool GetIsCyclic() { if (StartRoute == null) { return(false); } return(StartRoute.GetIsCyclic() || StartRoute.Contains(End)); }
public int GetEdgeCount() { if (StartRoute == null) { return(0); } return(1 + StartRoute.GetEdgeCount()); }