hdf-compass
hdf-compass copied to clipboard
Add a graph view of the object structure
Examples attached...
@gheber Is this similar to what you have in mind?
More like this
Graphviz http://www.graphviz.org/
Sorry, just saw that I'd posted that already...
Can you attach the .dot file?
Do you need edge label? I think shape can tell what's group and what's dataset. Name of group / dset can be inside the node.
OK. Here's the graph view powered by Graphviz.
Very nice, but the labels have to be on the edges, because it's the link that's got the name, not the object.
Can it expand to show all the objects in a file?
Thanks Gerd for the crystal clear explanation and reason.
digraph sample {
rankdir = LR;
node [shape = doublecircle]; G_48;
node [shape = rect]; D_3175 D_1644 D_195 D_879 D_2705;
node [shape = ellipse]; G_1293;
node [shape = house]; T_1489;
node [shape = plaintext, label = "somevalue"]; S_0;
G_48 -> D_195 [ label = "dset1" ];
G_48 -> G_1293 [ label = "group1" ];
G_1293 -> D_1644 [ label = "dset3" ];
G_48 -> T_1489 [ label = "type1" ];
G_48 -> D_2705 [ label = "dset3" ];
G_48 -> G_1293 [ label = "group2" ];
G_48 -> S_0 [ label = "slink1" ];
G_48 -> D_879 [ label = "dset2" ];
G_48 -> D_3175 [ label = "hdf_logo" ];
}
@jreadey That's the goal.
(dot file)