Re: [graphviz-interest] Trying to figure out how best to view a more than small amount of dot data

Emmanuel Pietriga <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
On 15 mai 2013, at 15:58, Larry W. Virden <[email protected]> wrote:

> I will attach a sample of a tiny bit of one of the nodes. I have not learned, yet, whether I could point to DF_Facilities Ops and say "hide this" or "delete this" (the former being preferable to the latter) with the action resulting in the node, and everything related to the node (directly as well as chained) disappearing and the rest of the tree being redrawn with less clutter of relationship lines.

Hiding a node and its children would be easy given that zgrviewer maintains a representation of the graph's logical structure in memory (which enables you, when clicking a node, to get access to its children and thus hide the corresponding graphical objects). The trickier part would be to move all other nodes to take advantage of the space freed by hiding that subtree. Essentially, this is a problem of incrementally recomputing the graph's layout, and zgrviewer cannot ask GraphViz to do that. So, you'd have to do it by yourself. Given that you seem to have a pretty simple graph structure, it looks like this would just amount to translating those graph elements horizontally by some offset (same for all that are on the same side of the hidden subtree). Those translations can even be easily a
 nimated, which would be good for perceptual continuity.

--
Emmanuel Pietriga
INRIA & INRIA Chile
http://pages.saclay.inria.fr/emmanuel.pietriga

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.