コード例 #1
0
 private IEnumerable<Route> GetAllChildrenRoutesNotVisited(Route currentRoute)
 {
     return GetAllChildrenRoutes(currentRoute).Where(x => x.Visited == false);
 }
コード例 #2
0
 private IEnumerable<Route> GetAllChildrenRoutes(Route currentRoute, bool copy = false)
 {
     var routes = copy ? Graph.CopyRoutes() : Graph.QueryRoutes();
     return routes.Where(x => x.StartingTown == currentRoute.EndingTown);
 }