25.14 Visualizing Clusters in Graph Explorer

You can enable the cluster option with Force layout to group vertices by labels or by any specific vertex property in your graph visualization.

This is very useful when you are visualizing a graph with a lot of interconnected vertices.

Perform the following steps to apply clustering of vertices in your graph visualization:

  1. Click the Settings gear icon to open the graph Visualization Settings slider.
  2. Click the General tab.
  3. Select Force Layout in the Layout section.
  4. Click the Enable Cluster Layout checkbox.
  5. Select the Cluster By option.
    You can choose to cluster the vertices by labels (default) or by any specific vertex property.

    If you choose to cluster by a vertex property, then note that the clusters are created around property values that are identical. For instance, when querying a graph after running a community detection algorithm, you can use the vertex property containing the community ID value as a Cluster By option. This will create clusters that contain vertices with the same community ID.

  6. Optionally, adjust Distance Between Clusters to set the distance between the clusters.
  7. Optionally, adjust Spacing Within Clusters to set the distance between vertices inside clusters.
  8. Close the Visualization settings dialog.
    The vertices in the graph are clustered together based on the selected clustering option. For example, the following figure shows clustering of vertices based on labels:

    Figure 25-30 Visualizing Clusters in Graph Explorer