I am using QuickGraph version 3.6 and I found function SetRootVertex, but no SetTagretVertex. I need this because I am searching short paths in huge graph and this would speed up program a lot.
Clases in question are DijkstraShortestPathAlgorithm and AStarShortestPathAlgorithm.
I don't think there is a way to this without using events.
You could wrap the necessary code in one extension method, making things clear, e.g.:
Usage: