cytoscape: how to prevent node labels from occluding each other

2,245 views
Skip to first unread message

Yuan Luo

unread,
Feb 10, 2016, 11:58:08 AM2/10/16
to cytoscape-helpdesk
Hi,
I have a graph of a few thousand nodes and want to label a few hundred selected nodes. Is there anyway to automatically (vs. manual adjusting node positions) prevent the node labels from occluding each other? Say through a combination of vizmap style and layout.

Thanks,
Yuan

PS, I've also posted it to cytoscape-discuss, please let me know if I should delete one post.

Scooter Morris

unread,
Feb 10, 2016, 12:13:46 PM2/10/16
to cytoscape...@googlegroups.com
Hi Yuan,
    Well, the only thing I can think of offhand is to use the manual layout and zoom the network to avoid overlaps.  You may also want to adjust the node label width to see if wrapping helps.  At one point there was a student working on a force-directed layout that took the labels into account, but I don't think that ever reached completion.

-- scooter
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.

Elvira Inglese

unread,
Feb 11, 2016, 5:15:05 AM2/11/16
to cytoscape...@googlegroups.com
there is an App (Allegro layout) that prevent the overlap between nodes...Although it isn't free. 

Ankush Sharma

unread,
Feb 11, 2016, 6:34:34 AM2/11/16
to cytoscape...@googlegroups.com
Hi ,

Cyspanning app would help you in demonstrating your network with a loss of minimal information.

Hope it solves your problem

Best regards
Ankush

On Thu, 11 Feb 2016 at 11:15 AM Elvira Inglese <elvira....@gmail.com> wrote:
there is an App (Allegro layout) that prevent this overlapping if you set the label inside the node...Although it isn't free. 


Il giorno mercoledì 10 febbraio 2016 17:58:08 UTC+1, Yuan Luo ha scritto:
Hi,
I have a graph of a few thousand nodes and want to label a few hundred selected nodes. Is there anyway to automatically (vs. manual adjusting node positions) prevent the node labels from occluding each other? Say through a combination of vizmap style and layout.

Thanks,
Yuan

PS, I've also posted it to cytoscape-discuss, please let me know if I should delete one post.

--
Reply all
Reply to author
Forward
0 new messages