Skip to main content
Skip table of contents

11. Editing

In this Session…

Before you begin…

  • Adding nodes and edges.

  • Editing properties of nodes or edges.

  • Using an Enhanced Table to edit and export data.

Download starting data:
HowTo_11_START.graphxrsnapshots
HowTo_11_START.graphxr


Slide

1

How To GraphXR 11. Editing

2

Before You Begin…

Ideally, you’ll have worked through Module 10. Algorithms. If you’re starting here, and you want to follow along, you’ll need to:

  • Log in to GraphXR , create a Project, and open its graph space.

  • Download starting data (HowTo_11_START.graphxr and the starting snapshot library HowTo_11_START.graphxrsnapshots) for this module and drag and drop it onto the graph space.  

  • Optionally, download the file  https://kineviz.com/s/GXR_QSG.zip, which contains the Game of Thrones data we’re using in our tutorials.

3

At any time, we can use toolbar icons or the right-click menu to create nodes or edges, edit our graph data, or delete a selection.

4

Let’s add some data. Add Node lets us add just one new node at a time, along with its properties and their values. Add Edge lets us connect two sets of selected nodes.

5

Click Add Node in the toolbar or right-click menu, and select House in the dropdown menu to add a House node.

6

Enter a new houseName property. (Notice that we could create an entirely new category and/or add new properties). Click Create.

7

To locate the new node you can click the Fly Out icon. Or select all House nodes in the legend and use a Quick Layout to reposition them, e.g. in a line or grid.

8

Now we’ll add BELONGS_TO edges connecting a few source Characters nodes to the target House node we just created.

9

Select the Characters nodes and click Add Edge in the toolbar or right-click menu. 

10

The Add Edge dialog opens with the selected nodes listed as Source Nodes. You can add or subtract nodes and click As Source to update the selection.

11

Choose the existing BELONGS_TO relationship from the menu. Note that you have the option of creating a new relationship. 
Now click the new House node and click As Target to add it to Target Nodes.

12

You can click Switch to reverse the direction of the relationship. And you can enter property names if desired. We don’t need to do either one.
Now click Create to see your new edges.

13

The selected Characters nodes are now connected through the new BELONGS_TO edges to the House node we created.

14

We can edit our graph data directly using a table. First though, take a snapshot. Now open the Table panel then click Enhanced Table.

15

In an Enhanced Table we can edit, add, or remove graph data. Changes take effect immediately in the graph. Click any Category or Relationship bubble to edit its label.

16

Click the property menu to select properties to display in the table. Click the x on a property label to hide it.

17

Click the settings icon next to a property name to Rename, set a data Type, Hide, or Delete a property.

18

Any property value can be edited. 
The change takes effect immediately in the graph.

19

You can mark nodes for live selection in the graph. To see this, click the airplane icon at the top right to display the enhanced table in a separate browser window.

20

Click the square at the far left to select rows, then click More Actions and Mark Selected in Graph. The data is selected in the graph, and displayed in the basic table.

21

Click More Actions and Delete Selected from Graph to delete selected nodes or edges from the graph (and the table).

22

At any time, you can click More Actions and Export Selected as CSV or Export Selected as Excel to export all or part of the data as a CSV file (or Excel file).
Now dismiss the Enhanced Table window to return to the graph.

23

You can delete selected nodes and edges at any time. Deleting an edge simply removes it, leaving the nodes it was connected to. When you delete a node, its connected edges are also deleted.

24

Select the House noded we created and use your keyboard delete key, or click the Delete toolbar icon, or choose Delete on the right-click menu. The House node and the BELONGS_TO edges we connected to it are now deleted.

25

Now save our work. Download the snapshot archive, and save a GXRF file or view.
Next, in Module 12. Geospatial Mapping, we’ll work with displaying geo-located data on a world map.

Next Steps…

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.