Styling subgraphs

Now you will give the two groups meaningful names to identify them.
To identify the two groups of nodes:
  1. Select the first group.
    1. Under Data Properties, click the New Property icon.
    2. Enter name .
    3. Set the value of name to Europe .
    4. Press Enter.
  2. Select the second group.
    1. Under Data Properties, click the New Property icon.
    2. Enter name .
    3. Set the value of name to Asia .
    4. Press Enter.
    5. Go back to Style Editing mode by clicking the top icon in the vertical toolbar.
    6. Select the node style rule node:expanded .
    7. In the Styling Customizer, set the value of the Title parameter to @name .
    8. Press Enter.
      The group names change to the values you defined in Diagram Editing mode.
diada_newprop26.png
A new property for the group title
The result is to set the title of the group to the value of name instead of Untitled .
To style the representation of the subgraphs:
  • Switch to Style Editing Mode by clicking the top icon in the vertical toolbar.
For further customization purposes, note that the user-defined type ( tag property) of a group is group and that the state of a group can be expanded or collapsed as well as selected or legend .