improve layout with subnodes/ keep edges straight

49 views
Skip to first unread message

HizJ

unread,
Mar 9, 2020, 10:01:05 AM3/9/20
to cytoscape-helpdesk
Hi,

I am building a network where between major nodes I have 'subnodes'. The subnodes represent distances e.g. 2 subnode on edge between major node - distance of 2.

when building large networks and using a 'force-directed' layout I encounter an issue where the subnodes are treated like other nodes resulting in the graph becoming entangled and messy. 
for example if I plot my network without the subnodes it looks like this. Ideally when plotting with the subnodes, they should appear as dots on the straight lines

Screenshot 2020-03-09 at 13.52.34.png

however instead it looks like this:

Screenshot 2020-03-09 at 13.50.38.png

I assume this issue arises as the layout algorithm is trying to maintain distance between the subnodes too.
can anyone help me to keep the edges between the major nodes as straight as possible and prevent this entaglement. 


Thanks

Dexter Pratt

unread,
Mar 10, 2020, 1:23:47 PM3/10/20
to cytoscape...@googlegroups.com
Hi 

Which layout algorithm(s) are you using?  Can you share your two example networks, perhaps by saving them to NDEx and sharing them via a sharable URL? (www.ndexbio.org, see the NDEx icon in the left corner of the Cytoscape menubar)

Dexter
Reply all
Reply to author
Forward
0 new messages