commit
705e3c6bf0
|
@ -397,9 +397,9 @@ model. In the HelloWorld example we saw this code:</p>
|
||||||
graph.getModel().beginUpdate();
|
graph.getModel().beginUpdate();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Object v1 = graph.addVertex(parent, null, "Hello,", 20, 20, 80, 30);
|
Object v1 = graph.insertVertex(parent, null, "Hello,", 20, 20, 80, 30);
|
||||||
Object v2 = graph.addVertex(parent, null, "World!", 200, 150, 80, 30);
|
Object v2 = graph.insertVertex(parent, null, "World!", 200, 150, 80, 30);
|
||||||
Object e1 = graph.addEdge(parent, null, "", v1, v2);
|
Object e1 = graph.insertEdge(parent, null, "", v1, v2);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue