Analyzing Graphs on the Canvas
Scenario
The canvas intuitively displays the graph data. You can also edit and analyze data in this area.
For details about the shortcut keys and interface elements on the canvas, see Table 3.
Procedure
- Log in to the GES graph editor. For details, see Accessing the GES Graph Editor.
- On the canvas, right-click a vertex or an edge, and perform the following operations: Figure 1 Shortcut menu
- View Property
Select View Property to view the property information about the selected vertex or edge on the Property tab page.
Figure 2 View Property
- Search by Association You can select OUT, IN, and ALL to expand vertices related to the current vertex.
- OUT: Query the vertices using this vertex as the source vertex.
- IN: Query the vertices using this vertex as the target vertex.
- ALL: Query all vertices of OUT and IN.
- Export
Export the graph or data displayed on the canvas.
- Search by Path
Query paths between two vertices. All possible paths are listed.
Procedure: Hold down Ctrl and click two vertices. The first is the target vertex and the second is the source vertex. Then, Right-click and choose Search by Path from the shortcut menu.
This option is valid only when two vertices are selected. Otherwise, it is dimmed.
After this function is executed, the canvas is cleared, and then the queried vertex and edge data is returned and rendered in the canvas. A path is formed based on the selected two vertices.
Figure 3 Search by path
- Shortest Path of the Vertex Sets
- Hold down Shift and box-select a group of vertices (a single vertex or multiple vertices).
- Hold down Shift and box-select another group of vertices (a single vertex or multiple vertices).
- Right-click in the selection box and choose Shortest Path of the Vertex Sets from the shortcut menu.
- In the dialog box that is displayed, you can edit the selected two sets of vertices and click + to quickly add vertices.
- Click Run. The shortest paths between two vertex sets are returned.
- Common Neighbors of Vertex Sets
- Function
By box-selecting the common neighbors of two vertex sets, you can intuitively discover the objects associated with the two sets.
- Procedure
- Hold down Shift and box-select two vertex sets. Figure 4 Box-selecting vertex sets
- Right-click a vertex set and choose Common Neighbors of Vertex Sets from the shortcut menu. Figure 5 Common Neighbors of Vertex Sets
- In the displayed dialog box, confirm the vertices in the vertex set. You can add or delete vertices and determine whether to carry additional parameters. Then, click Run. Figure 6 Confirming the vertices in the vertex sets
Carrying additional constraints:
- If this option is not selected, the found common neighbors are the intersection of the neighbors corresponding to the source vertex set and target vertex set.
- If this option is selected, the found common neighbors are not only the intersection of the neighbors corresponding to the source vertex set and target vertex set, but each vertex in the common neighbor set has at least two neighboring vertices in the source vertex set and target vertex set.
- Display the result. Figure 7 Graph Display
Figure 8 Query Result
- Hold down Shift and box-select two vertex sets.
- Function
- Sub Graph: Press and hold Ctrl and select some vertices. The edges between those vertices and the selected vertices form a new graph.
- Add Edge: You can add an edge using either of the following methods:
- Hold down Ctrl, select any two vertices on the canvas, right-click the selected vertices, and choose Add Edge from the shortcut menu to add an edge between the vertices. By default, the vertex selected first is the source vertex, and that selected later is the target vertex. After the edge is added, you can select the label of the edge and set the edge properties.
- Select a vertex, press Alt+A, drag the cursor to the target vertex, and left-click to add an edge.
- Hide: Hide the selected vertex.
- View Property
Last Article: Analyzing Graphs Using Algorithms
Next Article: Filtering Conditions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.