Hi all,
I would like to write a plugin to adjust edge length based on some edge attribute, but I'm not quite sure which part of the program I should extend. I would like still be able to use all of the layout algorithms, and just have length of edges be be adjusted, in the same way that node size is adjusted when applying rankings.
Thanks!
Adjust Edge Length
- 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: Adjust Edge Length
Hi,
Edge length is determined by the layout algorithm, which takes in account the edge weight, in addition of the force calculation based on topology. By modifying the edge weight, the edge length will vary for layout that use it. ForceAtlas does, but not Yifan Hu.
Is that what you want ?
Edge length is determined by the layout algorithm, which takes in account the edge weight, in addition of the force calculation based on topology. By modifying the edge weight, the edge length will vary for layout that use it. ForceAtlas does, but not Yifan Hu.
Is that what you want ?
-
- Posts:1
- Joined:12 Jan 2011 16:20 [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: Adjust Edge Length
Hello !
I have the same problem, i have a length attribute which contain distance between [nodes source] to [nodes target]
There are no tools to fix length between node in gephi with an attribute length ?
I have the same problem, i have a length attribute which contain distance between [nodes source] to [nodes target]
There are no tools to fix length between node in gephi with an attribute length ?
- 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: Adjust Edge Length
You can do that with the Data Laboratory
Go to the 'Edges' section in the 'Data Laboratory' and do 'Copy data to other column' with the attribute column that contains your numbers. Select 'Weight' as destination column.
That will set the edge weight to the values you want.
Go to the 'Edges' section in the 'Data Laboratory' and do 'Copy data to other column' with the attribute column that contains your numbers. Select 'Weight' as destination column.
That will set the edge weight to the values you want.
-
- Posts:1
- Joined:15 Jun 2011 20:31 [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: Adjust Edge Length
So does ForceAtlas place nodes with a higher weight closer together or farther apart?
Thanks!
Thanks!
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: Adjust Edge Length
They are closer.