Hiding Nodes

83 views
Skip to first unread message

Nick

unread,
Jul 5, 2011, 7:17:51 PM7/5/11
to canviz
Hi, I'm working on a project involving interactive binary trees using
Canviz. I'm looking for a way to have a user click an edge label and
have that hide all the descendant nodes of the node that edge points
to. I'm currently setting the style attribute to 'invis,' but this
isn't working. Does Canviz support invisible nodes?

Thanks!

Ryan Schmidt

unread,
Jul 28, 2011, 10:21:45 PM7/28/11
to can...@googlegroups.com

Currently Canviz renders what Graphviz' xdot file tells it to render. So if you have a gv file specifying that a node is invis, and you feed that gv file to Graphviz and ask it to produce an xdot file, it will render correctly.

Interactively changing aspects of the graph and re-drawing it on the client side is interesting and desirable, but I'm not sure how much of that, if any, is done in Canviz today. The intended way for this to happen is that you would programmatically alter the aspects of the entity objects and then re-render the graph.

Reply all
Reply to author
Forward
0 new messages