[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 •Preventing overlapping directed edges
Page 1 of 1

Preventing overlapping directed edges

Posted: 14 Oct 2013 11:20
by Simski
Hi,

I have a graph with directed edges. There is an edge from node 2 to node 3 and one from node 3 to node 2. Predictably, these edges overlap. Is there a layout option hidden somewhere that allows me to curve the edges so they don't overlap anymore?

Thanks,
Simski

Re: Preventing overlapping directed edges

Posted: 14 Oct 2013 20:49
by pegerp
Hi simski.

There is an option to enable curved edges when exporting the graph as PNG or other image format in Preview panel. In Overview panel I don't think it's possible to have curved edges. If the both edges are still curved the same way - ie. overlapping - then I don't think there are any workarounds. Maybe move the nodes around and hope that the algorithm computes different curvature or something.

If you are doing this in Java then set the PreviewProperty EDGE_CURVED to true ( http://gephi.org/docs/toolkit/org/gephi ... perty.html ). See the Gephi Toolkit examples for how to use properties.

On an unrelated note in my Gephi 0.8.2 the edge arrows are not rendered on my test network.

Re: Preventing overlapping directed edges

Posted: 16 Oct 2013 16:56
by Simski
Hey pegerp,

thank you for your reply! This solved the overlap problem, but I also lost the arrows in the export. There is an option to set the arrow size in the preview settings, but it doesn't seem to do anything. (I've tried exporting as pdf, png and svg - always with the same result).

Does anyone know how to fix this?

Cheers,
Simski