! hi. Anyone know how I can remove a vertex at time eliminated its edge. What happens is that when you remove an edge, only erases the line, but I want to also delete the vertex son.

asked 05 Sep '12, 17:51

Quetzalcoatl%20Agua%20Marina's gravatar image

Quetzalcoatl Agua M...
accept rate: 0%

You could override mxGraphModel.remove(Object cell):

if (isEdge(cell)){
   remove(getTerminal(cell, true));
   remove(getTerminal(cell, false));

super.remove() should also be called somewhere


answered 12 Sep '12, 10:22

Marc's gravatar image

accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 05 Sep '12, 17:51

Seen: 3,759 times

Last updated: 12 Sep '12, 22:49