Copying and pasting

You can copy or cut nodes, edges, EIDs, text boxes, and unexpanded/expanded groups from the graph and paste them onto the same graph or a different graph.

You can perform these actions from the graph toolbar or by using keyboard shortcuts. For a list of keyboard shortcuts, see Graph Browser shortcuts or on the right-most side of the graph toolbar hover on the shortcut button.

Copy and paste actions

If you copy multiple elements at the same time, the layout will be preserved when you paste and the elements will have same distance between them. Style and labels are also preserved.

Copying and pasting on a graph

  1. Select the elements you want to copy.

  2. From the toolbar, click Copy.

  3. From the toolbar, click Paste.

  4. Go to where you want to paste the elements, either on the current graph or a different graph.

  5. Click the location on the graph where you want to paste the elements.

After pasting, a notification summarizes what was pasted or couldn’t be pasted. Unexpanded groups are summarized by group.

  • Use the Cut action instead of Copy to remove the original elements from the graph.

  • To exit paste mode, press Esc.

Avoiding duplication

You can avoid duplicating elements when copying from one graph to another. To do this, instead of pasting as usual, from the toolbar, expand Paste and select Paste without duplicate.

Copy paste behavior

Copying edges

To copy an edge to another graph, the target graph must include both of the edge’s related nodes. Otherwise the edge isn’t copied. The paste summary notification will list any edges that aren’t copied.

Copying nodes

When copying nodes to another graph, the outcome depends on if the node already exists on the graph and if it’s a document or local node. Local nodes are graph-only nodes that don’t represent an Elasticsearch document.

The possible outcomes are described in the following tables.

Table 1. Outcome of copying nodes to a graph where they already exist

Node

Outcome

Local node

Another local node is created that’s a copy of the node.

Document node

A local node is created that’s a copy of the node. All the fields are populated with the same values.

Table 2. Outcome of copying nodes to a graph where they don’t already exist

Node

Outcome

Local node

A local node is created that’s a copy of the node.

Document node

The document node is added to the graph. If the document can’t be found, a local node is created that’s a copy of the node. All the fields are populated with the same values.