Home » Eclipse Projects » GEF » [Zest] Dot export compatibility
[Zest] Dot export compatibility [message #1021278] |
Tue, 19 March 2013 19:32 |
ilhami visne Messages: 4 Registered: March 2013 |
Junior Member |
|
|
Hello,
I've exported the sample graph from the wiki first with the zest-dot and then with the original dot (from graphviz). The generated dots were not the same.
Is there a way to generate the same dot or was this never the goal from the beginning?
Best wishes,
ilhami visne
[Updated on: Tue, 19 March 2013 19:33] Report message to a moderator
|
|
| |
Re: [Zest] Dot export compatibility [message #1021560 is a reply to message #1021528] |
Wed, 20 March 2013 10:14 |
ilhami visne Messages: 4 Registered: March 2013 |
Junior Member |
|
|
Hi Fabian,
Sorry, i could not make myself clear.
> which sample graph from the wiki are you referring to?
The one from this link: http://wiki.eclipse.org/Zest/DOT :
digraph s{
n1[label="Node 1"]; n2[label="Node 2"];
n1 -> n2[style=dotted label="A dotted edge"]
}
I've exported this with Zest this using the following code:
String graphStr = "digraph s{ n1[label=\"Node 1\"]; n2[label=\"Node 2\"];"
+ " n1 -> n2[style=dotted label=\"A dotted edge\"]}";
Shell shell = new Shell();
DotGraph graph = new DotGraph(graphStr, shell, SWT.NONE);
System.out.println(graph.toDot());
This gives me:
digraph DotGraph{
/* Global settings */
graph[layout=dot]
node[shape=box] //more like the Zest default node look
rankdir=TD
/* Nodes */
1879952853[label="Node 1"];
440702060[label="Node 2"];
/* Edges */
1879952853 -> 440702060[style=dotted label="A dotted edge"];
}
The same graph using the dot without any specific parameter generates:
digraph simple {
graph [bb="0,0,117,124"];
node [label="\N"];
n1 [height=0.5,
label="Node 1",
pos="37,106",
width=1.0375];
n2 [height=0.5,
label="Node 2",
pos="37,18",
width=1.0375];
n1 -> n2 [label="A dotted edge",
lp="77,62",
pos="e,37,36.084 37,87.597 37,75.746 37,59.817 37,46.292",
style=dotted];
}
I was referring to this difference. I hope this time it is clear.
Thanks,
ilhami
[Updated on: Wed, 20 March 2013 10:14] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Fri Apr 26 08:56:18 GMT 2024
Powered by FUDForum. Page generated in 0.03443 seconds
|