hdf-compass icon indicating copy to clipboard operation
hdf-compass copied to clipboard

Add a graph view of the object structure

Open gheber opened this issue 9 years ago • 13 comments

Examples attached...

sample traite_de_documentation

gheber avatar Apr 17 '15 07:04 gheber

@gheber Is this similar to what you have in mind?

screen shot 2015-10-30 at 10 21 18 am

hyoklee avatar Oct 30 '15 15:10 hyoklee

More like this sample

gheber avatar Oct 30 '15 16:10 gheber

Graphviz http://www.graphviz.org/

gheber avatar Oct 30 '15 16:10 gheber

Sorry, just saw that I'd posted that already...

gheber avatar Oct 30 '15 16:10 gheber

Can you attach the .dot file?

hyoklee avatar Oct 30 '15 16:10 hyoklee

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.

hyoklee avatar Oct 30 '15 16:10 hyoklee

OK. Here's the graph view powered by Graphviz.

screen shot 2015-10-30 at 12 54 36 pm

hyoklee avatar Oct 30 '15 17:10 hyoklee

Very nice, but the labels have to be on the edges, because it's the link that's got the name, not the object.

gheber avatar Oct 30 '15 18:10 gheber

Can it expand to show all the objects in a file?

jreadey avatar Oct 30 '15 18:10 jreadey

Thanks Gerd for the crystal clear explanation and reason.

hyoklee avatar Oct 30 '15 18:10 hyoklee

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" ];

}

gheber avatar Oct 30 '15 18:10 gheber

@jreadey That's the goal.

hyoklee avatar Oct 30 '15 18:10 hyoklee

(dot file)

gheber avatar Oct 30 '15 18:10 gheber