RemoteGraph#
- class RemoteGraph#
Bases:
object
Methods:
add_constant_properties
(properties)Adds constant properties to the remote graph.
add_edge
(timestamp, src, dst[, properties, ...])Adds a new edge with the given source and destination nodes and properties to the remote graph.
add_edges
(updates)Batch add edge updates to the remote graph
add_node
(timestamp, id[, properties, node_type])Adds a new node with the given id and properties to the remote graph.
add_nodes
(updates)Batch add node updates to the remote graph
add_property
(timestamp, properties)Adds properties to the remote graph.
create_node
(timestamp, id[, properties, ...])Create a new node with the given id and properties to the remote graph and fail if the node already exists.
delete_edge
(timestamp, src, dst[, layer])Deletes an edge in the remote graph, given the timestamp, src and dst nodes and layer (optional)
edge
(src, dst)Gets a remote edge with the specified source and destination nodes
node
(id)Gets a remote node with the specified id
update_constant_properties
(properties)Updates constant properties on the remote graph.
- add_constant_properties(properties)#
Adds constant properties to the remote graph.
- add_edge(timestamp, src, dst, properties=None, layer=None)#
Adds a new edge with the given source and destination nodes and properties to the remote graph.
- Parameters:
- Returns:
the remote edge
- Return type:
- add_edges(updates)#
Batch add edge updates to the remote graph
- Parameters:
updates (List[RemoteEdgeAddition]) – The list of updates you want to apply to the remote graph
- Return type:
- add_node(timestamp, id, properties=None, node_type=None)#
Adds a new node with the given id and properties to the remote graph.
- Parameters:
- Returns:
the new remote node
- Return type:
- add_nodes(updates)#
Batch add node updates to the remote graph
- Parameters:
updates (List[RemoteNodeAddition]) – The list of updates you want to apply to the remote graph
- Return type:
- add_property(timestamp, properties)#
Adds properties to the remote graph.
- create_node(timestamp, id, properties=None, node_type=None)#
Create a new node with the given id and properties to the remote graph and fail if the node already exists.
- Parameters:
- Returns:
the new remote node
- Return type:
- delete_edge(timestamp, src, dst, layer=None)#
Deletes an edge in the remote graph, given the timestamp, src and dst nodes and layer (optional)
- edge(src, dst)#
Gets a remote edge with the specified source and destination nodes
- Parameters:
- Returns:
the remote edge reference
- Return type:
- node(id)#
Gets a remote node with the specified id
- Parameters:
- Returns:
the remote node reference
- Return type: