RemoteEdge

A remote edge reference

Returned by [RemoteGraph.edge][raphtory.graphql.RemoteGraph.edge], [RemoteGraph.add_edge][raphtory.graphql.RemoteGraph.add_edge], and [RemoteGraph.delete_edge][raphtory.graphql.RemoteGraph.delete_edge].

Methods

MethodDescription
add_metadataAdd metadata to the edge within the remote graph.
add_updatesAdd updates to an edge in the remote graph at a specified time.
deleteMark the edge as deleted at the specified time.
update_metadataUpdate metadata of an edge in the remote graph overwriting existing values.

Method Details

add_metadata

Signature: add_metadata(properties, layer=None)

Add metadata to the edge within the remote graph. This function is used to add metadata to an edge that does not change over time. This metadata is fundamental information of the edge.

Parameters

NameTypeDefaultDescription
propertiesdict[str, PropValue]-A dictionary of properties to be added to the edge.
layerstr, optionalNoneThe layer you want these properties to be added on to.

Returns

TypeDescription
None

add_updates

Signature: add_updates(t, properties=None, layer=None)

Add updates to an edge in the remote graph at a specified time.

This function allows for the addition of property updates to an edge within the graph. The updates are time-stamped, meaning they are applied at the specified time.

Parameters

NameTypeDefaultDescription
tint | str | datetime-The timestamp at which the updates should be applied.
propertiesdict[str, PropValue], optionalNoneA dictionary of properties to update.
layerstr, optionalNoneThe layer you want the updates to be applied.

Returns

TypeDescription
None

delete

Signature: delete(t, layer=None)

Mark the edge as deleted at the specified time.

Parameters

NameTypeDefaultDescription
tint | str | datetime-The timestamp at which the deletion should be applied.
layerstr, optionalNoneThe layer you want the deletion applied to.

Returns

TypeDescription
None

Raises

ExceptionDescription
GraphErrorIf the operation fails.

update_metadata

Signature: update_metadata(properties, layer=None)

Update metadata of an edge in the remote graph overwriting existing values. This function is used to add properties to an edge that does not change over time. These properties are fundamental attributes of the edge.

Parameters

NameTypeDefaultDescription
propertiesdict[str, PropValue]-A dictionary of properties to be added to the edge.
layerstr, optionalNoneThe layer you want these properties to be added on to.

Returns

TypeDescription
None