4

In QuickGraph - is there an algorithm to find all vertices that are in a specific distance from root vertex (or any other vertex)?

For example finding all vertices that their distance from root vertex is 2.

Muhamad Jafarnejad
  • 2,521
  • 4
  • 21
  • 34
  • ShortestPathDijkstra? – weismat Apr 28 '16 at 07:03
  • In ShortestPathDijkstra we define source and target vertices, and then the algorithm find the shortest path between them. But here we need define the source vertex and the path distance(for example two) to an algorithm, and then get all states with this distance. By ShortestPathDijkstra algorithm we can check ALL vertices in the graph (as target) and then choose vertices with specific distance, not optimized! – Muhamad Jafarnejad Apr 28 '16 at 07:13

0 Answers0