[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Adjust Edge Length
Page 1 of 1

Adjust Edge Length

Posted: 06 Jul 2010 15:34
by mortfrog
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!

Re: Adjust Edge Length

Posted: 06 Jul 2010 22:36
by mbastian
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 ?

Re: Adjust Edge Length

Posted: 12 Jan 2011 16:23
by reyman
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 ?

Re: Adjust Edge Length

Posted: 12 Jan 2011 17:41
by mbastian
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.

Re: Adjust Edge Length

Posted: 15 Jun 2011 20:33
by alp133sch
So does ForceAtlas place nodes with a higher weight closer together or farther apart?

Thanks!

Re: Adjust Edge Length

Posted: 15 Jun 2011 20:47
by admin
They are closer.