How to vertically align nodes in columns?

Algorithms and parameters to put data in space
Post Reply [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
georgeu2000
Posts:3
Joined:23 Apr 2012 01:12
[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
How to vertically align nodes in columns?

Post by georgeu2000 » 23 Apr 2012 01:18

I am creating a "traditional" Neural Net diagram for a network of thousands of nodes.

How to line up nodes vertically in columns? There are 3 columns.

Thanks!

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to vertically align nodes in columns?

Post by seinecle » 24 Apr 2012 09:11

Hi,

You can add two attributes to each of your nodes:

- a latitude

- a longitude

=> then apply the geolayout (https://gephi.org/plugins/geolayout/). By analogy with a geographical map, you will be able to locate your nodes on your screen just as on a geographical map, the coordinates being latitude and longitude.

[ a tutorial explaining how to use the geolayout is available here: http://gephi.org/tutorials/gephi-tutorial-layouts.pdf ]

To get the specific effect you need, for each node,
- assign one of three different values for your longitude (effect: visually, you will get 3 columns)
- make a computation to assign a value for latitude which will space evenly the nodes vertically.

In practice, I do that on an excel spreadsheet, then I import it in the data laboratory. This is a bit of work, but it works well.

If these indications are not clear, don't hesitate to post a follow up!

Best,

Clement

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to vertically align nodes in columns?

Post by seinecle » 07 Mar 2013 09:33

Update:

You could be interested in this plugin:
https://marketplace.gephi.org/plugin/al ... al-sorter/

Best,

Clement

Post Reply
[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
[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