I'm trying to find/create an algorithm to find the least number of edges to traverse to, to get to a vertex.
I am using a SimpleDirectedWeightedGraph
, but I don't want to use Dijkstra's algorithm because I want to omit the weights doing this.
Is there a built in method/class that can help me do this, or an algorithm I can use?