MutableEdge
Methods
| Method | Description |
|---|
add_metadata | Add metadata to an edge in the graph. |
add_updates | Add updates to an edge in the graph at a specified time. |
delete | Mark the edge as deleted at the specified time. |
update_metadata | Update metadata of an edge in the graph overwriting existing values. |
Method Details
Signature: add_metadata(metadata, layer=None)
Add metadata to an edge in the graph.
This function is used to add properties to an edge that do not
change over time. These properties are fundamental attributes of the edge.
Parameters
| Name | Type | Default | Description |
|---|
metadata | PropInput | - | A dictionary of properties to be added to the edge. |
layer | str, optional | None | The layer you want these properties to be added on to. |
Returns
Signature: add_updates(t, properties=None, layer=None, event_id=None)
Add updates to an edge in the 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
| Name | Type | Default | Description |
|---|
t | TimeInput | - | The timestamp at which the updates should be applied. |
properties | PropInput, optional | None | A dictionary of properties to update. |
layer | str, optional | None | The layer you want these properties to be added on to. |
event_id | int, optional | None | The optional integer which will be used as an event id |
Returns
| Type | Description |
|---|
| None | This function does not return a value, if the operation is successful. |
Raises
| Exception | Description |
|---|
GraphError | If the operation fails. |
Signature: delete(t, layer=None, event_id=None)
Mark the edge as deleted at the specified time.
Parameters
| Name | Type | Default | Description |
|---|
t | TimeInput | - | The timestamp at which the deletion should be applied. |
layer | str, optional | None | The layer you want the deletion applied to. |
event_id | int, optional | None | The event id for the deletion's time entry. |
Returns
Raises
| Exception | Description |
|---|
GraphError | If the operation fails. |
Signature: update_metadata(metadata, layer=None)
Update metadata of an edge in the 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
| Name | Type | Default | Description |
|---|
metadata | PropInput | - | A dictionary of properties to be added to the edge. |
layer | str, optional | None | The layer you want these properties to be added on to. |
Returns