Tulip provides a system for the management of graphs hierarchies. The hierarchy sub-window displays the existing instances of subgraphs or groups with their relationships, the user can change the current view of the graph by clicking directly on the tree. When clicking the right mouse button, a pop-up menu is displayed, it allows to manage the instances of cluster : remove, clone, create subgraph.
A graph can have several parts of itself : these are stored in the subgraph instances. Some clustering algorithms can made subgraphs. A subgraph share its elements with the graph, it is just a part of the graph. It is possible to add properties for the subgraph only or to use the inherited properties.
For more information please visit : Wikipedia: Subgraphs
Some graph can be a subgraph of an other graph. This kind of hierarchy enables to assign a graph to a node.
A meta-node, is a node that contain a group. A meta node can contain / refer to the root graph (Fractal effect).
To create a subgraph follow these steps :
1 .
Select a few Nodes with the selection tool. (Shift + click, will add a node to the selection)
To select the edges that are between the selected nodes use the "Induced Sub-graph" algorithm.
2 .
Create a subgraph : from the menu Edit->Create Subgraph
, or from the keyboard, Ctrl + Shift + G. Give it a name.
You will be able to find your new subgraph in the hierarchy onglet of the info editor window.
To create a group follow these steps :
1 .
Select a few Nodes with the selection tool. (Shift + click, will add a node to the selection)
To select the edges that are between the selected nodes use the "Induced Sub-graph" algorithm.
2 .
Create a group : From the menu Edit->Create group
, or from the keyboard Control + G. A warning saying "Grouping can not be done on the root graph a subgraph will be created" may pop up, if it does, just click OK
.
You will be able to find your new group in the hierarchy onglet of the info editor window.
Severals subgraphs will be created :
A copy of the root graph called "groups" containing a meta-graph with a new meta-node pointing to our group.
A subgraph which is our new group.
To delete a group, left click on its name (in the Info editor) => delete
If you move a node in a subgraph, the same node will be moved in the root graph.