RemoteNode
#
Bases: object
add_metadata(properties)
#
Add metadata to a node in the remote graph. This function is used to add properties to a node that do not change over time. These properties are fundamental attributes of the node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
properties
|
dict[str, PropValue]
|
A dictionary of properties to be added to the node. |
required |
Returns:
Type | Description |
---|---|
None
|
|
add_updates(t, properties=None)
#
Add updates to a node in the remote graph at a specified time. This function allows for the addition of property updates to a node within the graph. The updates are time-stamped, meaning they are applied at the specified time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t
|
int | str | datetime
|
The timestamp at which the updates should be applied. |
required |
properties
|
dict[str, PropValue]
|
A dictionary of properties to update. |
None
|
Returns:
Type | Description |
---|---|
None
|
|
set_node_type(new_type)
#
Set the type on the node. This only works if the type has not been previously set, otherwise will throw an error
Parameters:
Name | Type | Description | Default |
---|---|---|---|
new_type
|
str
|
The new type to be set |
required |
Returns:
Type | Description |
---|---|
None
|
|
update_metadata(properties)
#
Update metadata of a node in the remote graph overwriting existing values. This function is used to add properties to a node that does not change over time. These properties are fundamental attributes of the node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
properties
|
dict[str, PropValue]
|
A dictionary of properties to be added to the node. |
required |
Returns:
Type | Description |
---|---|
None
|
|