I just finished my first layout, which I'm calling TubeMap. It lays out the network by network distance from a designated node. There's a long-winded explanation with examples here:
https://dhs.stanford.edu/spatial-humani ... -distance/
You can find the NBM here:
https://dhs.stanford.edu/resources/org- ... ubemap.nbm
and the source code here:
https://github.com/emeeks/gephi/tree/ma ... eMapLayout
I'd appreciate it if folks could give it a try and/or take a look at the code and suggest any improvements. Once it's had a bit of testing, I'll put it on the official list.
Just a note: It's obviously having problems with networks that are more than one weakly-connected component. I'll take a look at that.
TubeMap Layout
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: TubeMap Layout
Wow this is amazing peace of work. And and see you're already using the new GitHub repository
I have one suggestion. Instead of selecting the node in the layout interface you could create a new Tool that would react at the click. Tools are the icons one can see at the left of the visualization and can react to mouse events.
At the click of a node it would be quite easy to trigger the layout. The code would quite similar to the Toolkit, which you are familiar with.
There is no tutorial on the wiki yet about the creation of the tools but you there is documentation on the javadoc and you can browse the existing tools.
I have one suggestion. Instead of selecting the node in the layout interface you could create a new Tool that would react at the click. Tools are the icons one can see at the left of the visualization and can react to mouse events.
At the click of a node it would be quite easy to trigger the layout. The code would quite similar to the Toolkit, which you are familiar with.
There is no tutorial on the wiki yet about the creation of the tools but you there is documentation on the javadoc and you can browse the existing tools.
Re: TubeMap Layout
Thanks, Mathieu, I'll give that a go. I've obviously cribbed quite a bit from the Heatmap tool, so I should be able to follow from that.
Re: TubeMap Layout
I've updated the layout so it checks labels and IDs, but I think it may have revealed a bug in one of the shortest path algos, so I'm going to wait on that getting sorted before sending it off to be officially released. I'll get to work on a tool version next.