Graph Layout in Views

In Views, graphs are instances of the class IlvGrapher. We call these instances graphers. The nodes, which are instances of IlvGraphic, and the links, which are instances of IlvLinkImage, “know” how to draw themselves. The nodes can have arbitrary coordinates, or they can be placed interactively or by code. All that needs to be done to lay out the grapher to obtain a readable drawing is to compute and assign appropriate coordinates for the nodes. In some cases, the shape of the links may also need to be modified. The main task of the Graph Layout package is to provide support for the operation of laying out a grapher—that is, drawing the graph.

The Graph Layout package of Views benefits from its integration with the graph visualization and graph manipulation features of the Views 2D Graphics Professional product. This core library provides a wide range of very useful features to build powerful graphic interfaces easily:

  • Predefined, extensible types of graphic objects for nodes and links

  • A customizable mechanism to choose the contact points between links and nodes

  • Grapher interactor classes

  • Multiple views of the same grapher

  • Management of multiple layers

  • Selections management

  • Events management

  • Listeners on the contents of the grapher and/or on the views

  • Printing facilities

  • User properties on nodes and links

  • Input/output operations

For details on these features, see the Views Foundation and 2D Graphics Professional User’s Manuals.

Note

The Graph Layout package allows you to add layout capabilities to applications that do not use the Views grapher. For details, see Laying Out a Non-Views Grapher Laying Out a Non-Views Grapher .