This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Collapsing edges in directed Cytoscape network

I have a directed network I'm visualizing in Cytoscape that's very connected. To help clean it up, I want to collapse edges where there's both A->B and B->A, so that these two are viewed as a single edge, while still keeping the graph directed. Is this possible to do?

To give a small example:

Two nodes with two directed edges between them

Instead of having two edges here, I'd like for it to be displayed as one edge with a target on either end.

I know there's a way to remove duplicate edges while ignoring directionality, but I want to preserve the directed nature of the graph. Thanks for any info you can give.

pathway network cytoscape

1 answer

Well, collapsing edges and preserving directionality is obviously difficult :-) You could switch to haystack edges, which would simplify the network a bit. Look in the edge style under Properties for "Stacking". Then select "Haystack" and see if that helps.

-- scooter

Log in to answer this question.