Hi, \nIs it possible to nest vertices into each other? I mean, I want to somehow put some vertices into another one, let's call it "parent" vertex. Between the "child" vertices there will be edges, and even edges from a child vertex to another vertex outside the group. Is it possible to do something like this? Can you give me an example? \nThank you!

asked 09 Nov '11, 13:38

szabobalazs's gravatar image

accept rate: 0%

Yes, just use the group as the parent cell when inserting new cells.


answered 09 Nov '11, 23:48

Gaudenz's gravatar image

accept rate: 39%

Thank you. I tried that, but all vertices were overlayed.

(10 Nov '11, 01:18) szabobalazs

Try setting the x- and y-coordinates so that they don't overlap.

(10 Nov '11, 02:22) Gaudenz

is it possible to lock the child in the parent. If I use

Object v1 = graph.insertVertex(parent, null, "Hello", 20, 20, 80, 30);\ngraph.insertVertex(v1, null, "World!", 20, 20, 80, 30);\n

for example the layout is correct, but I can move around the second vertex.


I would like to have that only the parent is draggable and that the children move with it.


Is this possible ?


answered 05 Dec '11, 23:53

mremersoncod's gravatar image

accept rate: 12%

found it out by using ports

(08 Dec '11, 03:35) mremersoncod
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: 09 Nov '11, 13:38

Seen: 2,048 times

Last updated: 08 Dec '11, 03:35