At any time you can create new nodes and edges in the project space. Since graph data is extensible, you can add nodes and edges of new as well as existing categories or relationships. You can:

  • Add new nodes to the graph, using the Add Node toolbar icon.

  • Connect selected nodes using Add Edge toolbar icon.

  • Add new properties to a node or edge using Add Property in its Info window.

To delete data from the graph space you can:

  • Delete any data selection using the Delete icon (del or backspace).

  • Delete all the data in the graph space using the Clear icon (Ctrl+Shift+C).

Adding a node

You can add a new node directly in GraphXR, one at a time, using the Add Node icon in the context menu.

For example, we notice that a Game of Thrones character owns pet dogs called Harry and Rufus. So far, the data set doesn't include anything about animal roles. For each pet, we can quickly add a node (and, for the first one, create a new Pets category with initial properties such as the name, owner, age, url image, species, breed, and color of the pet).

To add a node:

  1. In the context menu, click the Add Node icon to display the AddNode dialog.

  2. Use the dropdown menu to select an existing category for the added node, or enter a new category name (e.g. Pets) and click Create.

  3. Enter one or more Property Names for the category (e.g. petName, etc.), and enter its corresponding Property Value (e.g. Harry).

    OR
    In the list of properties for an existing category, enter a Property Value if you have one, add any additional property names and their values, and click the minus (-) icon for properties for which you have no value.
    NOTE: The other nodes of an existing category will be updated with any new property names you add, but the values will be null. If you want to add values for a property you’ve added, you can inspect a Table for missing values, and enter a value for another node using its Information window (Ctrl+I). To enter values for multiple nodes at once, you can use f(x) or Aggregate transforms.

  4. Click Create to create the node.
    The new node appears in the graph space. A new category will appear in the Category list in the legend. For an existing category, the total number of nodes is updated.

Adding edges

Using Add Edge, you can connect selected nodes to each other with edges of a new or existing directed relationship. To do this, you’ll select nodes as the source, and then the nodes that are to be the target.

To add edges to nodes:

  1. Using any selection method, select one or more nodes that you want to connect to other nodes via a directed relationship.

  2. Click the Add Edge icon, and in the Add Edge dialog, either enter the name of a new relationship to be assigned to the new edges (e.g. OWNED_BY), or select an existing relationship from the dropdown menu.

  3. Optionally, enter property names and their values for the relationship.

  4. Click as Source to list the nodes that will be sources for new edges.

  5. Now select one or more target nodes for the edges and click as Target.

    If you've set the source and target backwards, click the Switch button to reverse the two.

  6. Click Create.
    New edges are created connecting the source nodes to the target nodes, with arrows showing the direction of the relationship. The total number of edges of that relationship is updated in the Relationship list in the legend.

Editing a property value

You can edit any property value of a single node or edge in its Info window. This might be useful if you need to correct errors, or add missing values to a very small amount of data.

To edit a property value:

  1. Select a single node or edge, and in the context menu, click the Info icon to display its information window.

  2. In the list of properties, double click a property Value, and edit the value in the provided text field.

  3. Click elsewhere in the list to save the new property value.

Adding new properties to a node or edge

You can add one or more new properties to a single node or edge using the Add Property button in its Info window. Adding properties and their values to one node or edge at a time in GraphXR is impractical for large amounts of data, but it can be useful for modeling and testing very small amounts of data, or for adding a small number of missing properties and their values.

To add a new property and property value:

  1. Select a single node or edge, and in the context menu, click the Info icon to display its information window.

  2. Click the Add Property button, and enter a Property Name and its Property Value in the provided text fields.

  3. Click Save to save the new property and property value, or Cancel to exit without saving.

Deleting data from the graph space

Deleting data from the graph space is easily done. You can:

  • Delete any data selection using the Delete icon (del or backspace).

  • Delete all the data in the graph space using the Clear icon (Ctrl+Shift+C).

You can use Ctrl+Z to immediately undo a Delete or Clear action.

Deleting data in the graph space does not delete the data you pulled from a Neo4j database. The data model persists, and the Categories and Relationships tabs in the Project panel still list your defined entity labels.

On the other hand, the editing and transformation you do in GraphXR will be lost unless you save data before deleting it. You can save data back to Neo4j, save a data View or Snapshot, or export data in a variety of formats.