Node
Kind: class
Source: src/graphrefly/_facade.py:1928
Signature
Section titled “Signature”Node(native: _native.Node, *, owner_thread: int, lifetime: _GraphLifetime, writable: bool = False, subscription_owner: _PublicSubscriptionOwner | None = None)Description
Section titled “Description”A typed Python handle around an opaque native node.
Attributes
Section titled “Attributes”| Name | Type | Description |
|---|---|---|
has_value | bool | Return whether this node currently has cached DATA. |
status | str | Return the node status string from the native graph. |
Methods
Section titled “Methods”set(value: T) -> NoneSet DATA on a writable state node.
Source: src/graphrefly/_facade.py:1946
cache(default: object = _NO_DEFAULT) -> objectReturn the latest cached DATA value or default when absent.
Source: src/graphrefly/_facade.py:1970
subscribe
Section titled “subscribe”subscribe(callback: Callable[[Message[T]], object], *, on_error: ObserverErrorHandler | None = None) -> SubscriptionSubscribe to this node’s public observation messages.
Source: src/graphrefly/_facade.py:2012