py2neo.data.operations – Low-level operations

py2neo.data.operations.create_nodes(tx, data, labels=None, keys=None)[source]

Create nodes from an iterable sequence of raw node data.

Parameters:
  • tx
  • data
  • labels
  • keys
Returns:

py2neo.data.operations.merge_nodes(tx, data, primary_label, primary_key, labels=None, keys=None)[source]

Merge nodes from an iterable sequence of raw node data.

Parameters:
  • tx
  • data – list of properties
  • primary_label
  • primary_key
  • labels
  • keys
Returns:

py2neo.data.operations.merge_relationships(tx, r_type, data)[source]
Parameters:
  • tx
  • r_type
  • data – list of (a_id, b_id, properties)
Returns:

py2neo.data.operations.create_subgraph(tx, subgraph)[source]

Create new data in a remote Graph from a local Subgraph.

Parameters:
  • tx
  • subgraph
Returns:

py2neo.data.operations.delete_subgraph(tx, subgraph)[source]

Delete data in a remote Graph based on a local Subgraph.

Parameters:
  • tx
  • subgraph
Returns:

py2neo.data.operations.merge_subgraph(tx, subgraph, p_label, p_key)[source]

Merge data into a remote Graph from a local Subgraph.

Parameters:
  • tx
  • subgraph
  • p_label
  • p_key
Returns:

py2neo.data.operations.pull_subgraph(tx, subgraph)[source]

Copy data from a remote Graph into a local Subgraph.

Parameters:
  • tx
  • subgraph
Returns:

py2neo.data.operations.push_subgraph(tx, subgraph)[source]

Copy data into a remote Graph from a local Subgraph.

Parameters:
  • tx
  • subgraph
Returns:

py2neo.data.operations.separate_subgraph(tx, subgraph)[source]

Delete relationships in a remote Graph based on a local Subgraph.

Parameters:
  • tx
  • subgraph
Returns:

py2neo.data.operations.subgraph_exists(tx, subgraph)[source]

Determine whether one or more graph entities all exist within the database. Note that if any nodes or relationships in subgraph are not bound to remote counterparts, this method will return False.

Parameters:
Returns:

True if all entities exist remotely, False otherwise

exception py2neo.data.operations.UniquenessError[source]

Raised when a condition assumed to be unique is determined non-unique.