[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 •[SOLVED] How the curved edges are drawn in the preview mode?
Page 1 of 1

[SOLVED] How the curved edges are drawn in the preview mode?

Posted: 06 Apr 2011 00:08
by kaigephi
I am very interested in knowing how the curved edges are drawn in the "preview" mode.

First, what type of curve is it? A Bezier curve? And how is it computed?

Second, how to decide which side a edge bends to? There are always two options and how to choose between them? Is there any heuristics such as reducing the edge crossings or keeping all the edge bending to the same side?

I tried to look into the source code, but can't find where the code is (probably because I am very new to gephi :-)

Re: How the curved edges are drawn in the "preview" mode?

Posted: 06 Apr 2011 15:11
by eduramiba
Hi kaigephi,

Yes the curves are bezier curves and the direction of the edge is clockwise (see http://forum.gephi.org/viewtopic.php?t=973)
And as far as I know there is no heuristic, just curved edges.

The class that calculates it is org.gephi.preview.EdgeImpl of PreviewImpl module.

Eduardo