Help Center/ Graph Engine Service/ User Guide/ Accessing and Analyzing Graph Data/ Multi-Graph Management (Database Edition)
Updated on 2024-06-17 GMT+08:00

Multi-Graph Management (Database Edition)

When you create a database graph, it is automatically upgraded to a multi-graph cluster. This cluster can have multiple graph instances, each allocated with different data. This allows you to analyze multiple graphs simultaneously.

In the graph engine editor, you can manage the graph instances in the graph cluster by clicking the dropdown menu next to the cluster name in the upper left corner of the page to switch between graph instances.
Figure 1 Multi-graph management

Adding or Deleting a Graph

  1. After the database graph cluster is created, the graph engine editor page is displayed. For details, see Accessing the GES Graph Editor.
  2. In the upper left corner of the page, click Add Graph. In the displayed dialog box, enter the graph name, vertex ID type, and SortKey type.
    Figure 2 Adding a graph
    • Vertex ID Type: The options include String (fixed length), String (variable length), and Hash.
      • String (fixed length): Vertex IDs are used for internal storage and compute. Specify the length limit. If the IDs are too long, the query performance can be reduced. Specify the length limit based on your dataset vertex IDs. If you cannot determine the maximum length, set the ID type to Hash. If you select String (fixed length), you also need to enter the vertex ID length.
      • String (variable length): The length of the vertex IDs written by the user is not limited. However, if the IDs are too long, the read and write performance is affected. It is recommended that the length be within 1,000 bytes, with a maximum of 4,000 bytes.
      • Hash: Vertex IDs are converted into hash code for storage and compute. There is no limit on the ID length. However, there is an extremely low probability, approximately 10^(-43), that the vertex IDs will conflict.

        If you cannot determine the maximum length of a vertex ID, set this parameter to Hash.

    • SortKey Type: SortKey type. Different SortKey values are configured to distinguish duplicate edges (edges with the same source vertex, end vertex, and label). The options include:
      • Integer: The value is an integer.
      • String (byte length less than or equal to 40): Importing a SortKey greater than 40 bytes will result in an error.
      • String (variable length): The length is not limited. However, if the IDs are too long, the read and write performance is affected. It is recommended that the length be within 1,000 bytes, with a maximum of 2,000 bytes.
  3. After setting the parameters, click OK.
  4. To delete a graph instance, click Delete Graph.