Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Heatmap Tool Sometimes Doesn't Work #472
If you load this network as an undirected network, the heatmap tool doesn't do anything when you click on the nodes:
No filter, just load the graph and set it to undirected when you first load it. Maybe the problem has something to do with setting a directed graph to undirected on import?
Sent from my iPhone
On Nov 13, 2011, at 11:58 AM, Mathieu Bastian email@example.com wrote:
added a commit
Nov 13, 2011
Yeah the Dijsktra implementation was weird. I looked at this article (http://www.vogella.de/articles/JavaAlgorithmsDijkstra/article.html), which has a clear pseudo-code and fixed our implementation.
The other problem was that the exception was not propagated so the tool was failing silently.
Let me know the fix works.
The fix works for running the algorithm on an undirected network, but something strange is happening with regard to the TubeMap usage of it. When I run TubeMap, it calculates network distance fine and lays out the network fine, but when I try to select the Network Distance column to apply a color ranking, it gives me the error below. If I copy the column to an Integer column and rank by color according to the new Integer column, it seems to be fine. It could be something I'm doing with TubeMap--maybe I need to explicitly cast the values as doubles when they have 0 decimal places? I'll take a look at that.
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer