[GEF4] Subgraphs in Graphviz DOT [message #1272560] |
Tue, 18 March 2014 03:52  |
Eclipse User |
|
|
|
Hello,
I am testing the GraphWidget from GEF4 and was able to display some graphs using the DOT language. However, when I try to create subgraphs, they are not displayed. I am using the example shown on this page but subgraphs are not displayed (the nodes are all displayed, on the other hand).
The graph that I want to display:
digraph subgraphs {
subgraph cluster1 { 1 -> 2; 2 -> 3; 2 -> 4 }
subgraph cluster2 { a -> b; a -> c; a -> d }
}
The full code to create the graph widget:
String dotGraph = "digraph subgraphs {"
+ "subgraph cluster1 { 1 -> 2; 2 -> 3; 2 -> 4 }"
+ "subgraph cluster2 { a -> b; a -> c; a -> d }" + "}";
Graph.Builder graph = new Graph.Builder(dotGraph);
GraphWidget widget = new GraphWidget(graph.build(), mainComposite,
SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
Why is this not showing the clusters ? It is the same dot string that is used in the example page and there the clusters are properly displayed. Do I need to do something special to make the subgraphs visible ?
Thanks,
Cédric
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27381 seconds