chriswongtv / node-all-paths

JavaScript implementation to find all possible paths in a graph
MIT License
6 stars 3 forks source link

not get true resul #4

Open abolfazlMKazemi opened 4 years ago

abolfazlMKazemi commented 4 years ago

hi for this graph im get one path

graph.addNode('A', { B:1 }); graph.addNode('B', { C:1 }); graph.addNode('C', { f:1 , b:1}); graph.addNode('f', { });

graph.path('A', 'b')

result is [["A", "B", "C", "b"]]

but most be two result [["A","B"],["A", "B", "C", "b"]]