Connection module#
Sub-module that contains behavior and state about Connection.
- class galaxy_graph.connection.Connection(data: T | None = None, identifier: str = <factory>)#
Connection between two nodes from the same graph.
- class galaxy_graph.connection.ConnectionNotSetup(state: ConnectionState)#
The Connection is not setup yet.
- is_setup() bool#
Check if the Connection is associated to Nodes.
- setup(source: Node, destination: Node) Connection[__annotationlib_name_1__]#
Associate this Connection to two Nodes.
Parameters#
- source: Node
First node of the connection (its source).
- destination: Node
Last node of the connection (pointing of the arrow).
- class galaxy_graph.connection.ConnectionSetup(state: ConnectionState, source: Node[__annotationlib_name_1__], destination: Node[__annotationlib_name_2__])#
The Connection is setup.
- is_setup() bool#
Check if the Connection is associated to Nodes.
- class galaxy_graph.connection.ConnectionSetupState(state: ConnectionState)#
Information if the Connection is already setup.
If the connection is setup, it has a source and a destination and cannot be updated anymore.
- is_setup() bool#
Check if the Connection is associated to Nodes.
- class galaxy_graph.connection.ConnectionState(connection: Connection[__annotationlib_name_1__])#
States of the connection that modify the Connection behavior.
- is_setup() bool#
Check if the Connection is associated to Nodes.