fkling / JSNetworkX

Build, process and analyze graphs in JavaScript (port of NetworkX)
https://felix-kling.de/jsnetworkx/
Other
757 stars 185 forks source link

Is there an algorithm to return all possible paths to one target? #77

Open marcodarko opened 5 years ago

marcodarko commented 5 years ago

Not really an issue but a question for the team, as I'm having difficulty finding a solution on the documentation.

Currently I only see a way to return one path: let path = jsnx.shortestPath(G, {source:'schema:Thing',target:'schema:StadiumOrArena'});

is there a way to get all paths to a target without specifying a source? let path = jsnx.shortestPath(G, {target:'target'});