Adding groups to the NLayeredGraphLayout layout


https://www.nevron.com/Forum/Topic8937.aspx
Print Topic | Close Window

By Mridulla Sorkaar - 9 Years Ago
Hi,

We want to add groups into the NLayeredGraphLayout layout that we are using. As of now, we are plotting the vertices and edges of the shapes and the layout automatically plots them correctly. Please check the diagram attached for this scenario [Sample Layered Graph Layout - Without Group.png]

However, as we try to plot any group in the layout (this is very important for us), it does not plot it correctly as you can see in the diagram attached [Sample Layered Graph Layout - With Group.png]. It just stacks it to the corner along with any vertex which does not have an edge.

Can you please guide us to bring grouping into the diagram as this is very important for us?

Regards,
Mridulla Sorkaar
By Nevron Support - 9 Years Ago
Hi,

You should set the GraphPart property of the groups to false:

group.GraphPart = false;


Thus the group will not take part in the layout, but its shapes will.