Skip to content

NeighborNode

Source code in docs_src/capo_context/types/neighbor_node.py
class NeighborNode(TypedDict, closed=True):
    node_id: "capo_context.types.generic_node_id.GenericNodeId"
    """<p>Unique identifier of the neighbor node.</p>"""
    properties: NotRequired["capo_context.types.metadata.Metadata"]
    """<p>Arbitrary key-value properties stored on this neighbor node.</p>"""
    depth: "int"
    """<p>The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).</p>"""
    path_edges: NotRequired["capo_context.types.path_edges_list.PathEdgesList"]
    """<p>The edges along the path from the seed node to this neighbor, preserving traversal order.</p>"""

depth instance-attribute

depth: int

The depth at which the traversal found this neighbor (1 = directly connected to seed, 2 = two edges away, and so on).

node_id instance-attribute

node_id: GenericNodeId

Unique identifier of the neighbor node.

path_edges instance-attribute

path_edges: NotRequired[PathEdgesList]

The edges along the path from the seed node to this neighbor, preserving traversal order.

properties instance-attribute

properties: NotRequired[Metadata]

Arbitrary key-value properties stored on this neighbor node.