i have drawing a vertex

 Object v1 = graph.insertVertex(parent, null, "hello", 100, 100, 80,30,"shape=ellipse");
 Object v2 = graph.insertVertex(parent, null, "hello", 200, 200, 80,30,"shape=ellipse");
 graph.insertEdge(parent, null, "connection", v1, v2);

now i want to rempalce v2 with an other vertex v3 for example, without losing any information , i mean i want to keep the connection with v1. Any answer will be appreciate.

asked 08 May '12, 14:59

Wassim%20Sboui's gravatar image

Wassim Sboui
16
accept rate: 0%

edited 08 May '12, 15:00


You need to delete the old vertex, insert the new one and set the edge as connected to the new vertex within a single edit transaction (begin/end update).

link

answered 09 May '12, 08:30

David's gravatar image

David
4.9k21831
accept rate: 47%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×66
×45

Asked: 08 May '12, 14:59

Seen: 1,323 times

Last updated: 09 May '12, 08:30