Skip to content
PACKAGES

Node

Kind: class

Source: src/graphrefly/_facade.py:1928

Node(native: _native.Node, *, owner_thread: int, lifetime: _GraphLifetime, writable: bool = False, subscription_owner: _PublicSubscriptionOwner | None = None)

A typed Python handle around an opaque native node.

NameTypeDescription
has_valueboolReturn whether this node currently has cached DATA.
statusstrReturn the node status string from the native graph.
set(value: T) -> None

Set DATA on a writable state node.

Source: src/graphrefly/_facade.py:1946

cache(default: object = _NO_DEFAULT) -> object

Return the latest cached DATA value or default when absent.

Source: src/graphrefly/_facade.py:1970

subscribe(callback: Callable[[Message[T]], object], *, on_error: ObserverErrorHandler | None = None) -> Subscription

Subscribe to this node’s public observation messages.

Source: src/graphrefly/_facade.py:2012