Performing graphlayout on subgraphs that are connected by intergraph links

Article ID: 2285
Last updated: 29 May, 2018
Article ID: 2285
Last updated: 29 May, 2018
Revision: 3
Views: 523
Posted: 18 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How to perform graphlayout on subgraphs that are connected by intergraph links?

Answer

Most graph layouts do not take intergraph links into account. Intergraph links are taken into account:

  • by IlvLinkLayout if the InterGraphLinksMode is enabled.
  • since JViews 8.5 by IlvHierarchicalLayout if the RecursiveLayoutMode is enabled.
  • since JViews 8.5 by IlvTreeLayout if the RecursiveLeafLayoutMode is enabled.

    The tree layout however takes only tree links into account, i.e. not all intergraph links.

All other graph layouts would still layout the subgraphs as disconnected graphs, even though those subgraphs are connected by intergraph links.

The sample below demonstrates a workaround, which implements a special grapher adapter that replaces the intergraph links on the fly by normal links, and removes these replacement links after layout. In this case, graph layout would no longer consider those graphs as disconnected thanks to these temporary replacement links. The sample also shows how to use recursive multiple layout on nested graphers via IlvRecursiveMultipleLayout API.

You can download the included sample of the attachment.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2285
Last updated: 29 May, 2018
Revision: 3
Views: 523
Posted: 18 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Attached files

Also listed in


Others in this category