Skip to content

CompiledGraph

junjo.CompiledGraph

Kind: Class

SDK version: 0.64.0

Documentation channel: Next source preview

CompiledGraph(graph_structural_id: str, source_node_runtime_id: str, sink_node_runtime_ids: tuple[str, ...], compiled_nodes: tuple[CompiledNode, ...], compiled_nodes_by_runtime_id: Mapping[str, CompiledNode], compiled_edges: tuple[CompiledEdge, ...], outgoing_compiled_edges_by_tail_runtime_id: Mapping[str, tuple[CompiledEdge, ...]], reachable_node_runtime_ids: frozenset[str])

View source

The canonical structural representation of a single Graph instance.

A compiled graph is immutable and normalized for graph-facing features:

  • validation
  • traversal adjacency lookups
  • serialization
  • rendering

Runtime graph objects still define the graph, but compiled snapshots are the single structural source of truth for all graph operations.

graph_structural_id: str

View source

Public attribute.

source_node_runtime_id: str

View source

Public attribute.

sink_node_runtime_ids: tuple[str, ...]

View source

Public attribute.

compiled_nodes: tuple[CompiledNode, ...]

View source

Public attribute.

compiled_nodes_by_runtime_id: Mapping[str, CompiledNode]

View source

Public attribute.

compiled_edges: tuple[CompiledEdge, ...]

View source

Public attribute.

outgoing_compiled_edges_by_tail_runtime_id

Section titled “outgoing_compiled_edges_by_tail_runtime_id”
outgoing_compiled_edges_by_tail_runtime_id: Mapping[str, tuple[CompiledEdge, ...]]

View source

Public attribute.

reachable_node_runtime_ids: frozenset[str]

View source

Public attribute.