You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm quite new to graphs, so this may not be a bug at all. Anyway, I noticed while i'm working on my network viewer(http://high5.io/network/), that the distance between nodes is quite randomly set to Infinity, instead of 1 or 2. When i type graphlib.alg.dijkstra(h5.network.graph, h5.id) in the console, I should see distance 0, 1 or anything but not Infinity I think. When I change the graph to directed and copy the edges, this problem seems to be gone. Any idea? Thanks by the way for creating this library!
The text was updated successfully, but these errors were encountered:
The behavior is counter intuitive. The default edge traversal function is outEdges, regardless of whether the graph is directed or undirected. However, the behavior of outEdges is undefined for an undirected graph. The correct fix for this is to use outEdges for directed graphs and nodeEdges for undirected graphs.
To hold you over until I get the fix in, you can use:
Hi!
I'm quite new to graphs, so this may not be a bug at all. Anyway, I noticed while i'm working on my network viewer(http://high5.io/network/), that the distance between nodes is quite randomly set to
Infinity
, instead of 1 or 2. When i typegraphlib.alg.dijkstra(h5.network.graph, h5.id)
in the console, I should see distance 0, 1 or anything but notInfinity
I think. When I change the graph to directed and copy the edges, this problem seems to be gone. Any idea? Thanks by the way for creating this library!The text was updated successfully, but these errors were encountered: