CompiledGraph
junjo.CompiledGraph
Kind: Class
SDK version: 0.64.0
Documentation channel: Next source preview
Signature
Section titled “Signature”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])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.
Members
Section titled “Members”graph_structural_id
Section titled “graph_structural_id”graph_structural_id: strPublic attribute.
source_node_runtime_id
Section titled “source_node_runtime_id”source_node_runtime_id: strPublic attribute.
sink_node_runtime_ids
Section titled “sink_node_runtime_ids”sink_node_runtime_ids: tuple[str, ...]Public attribute.
compiled_nodes
Section titled “compiled_nodes”compiled_nodes: tuple[CompiledNode, ...]Public attribute.
compiled_nodes_by_runtime_id
Section titled “compiled_nodes_by_runtime_id”compiled_nodes_by_runtime_id: Mapping[str, CompiledNode]Public attribute.
compiled_edges
Section titled “compiled_edges”compiled_edges: tuple[CompiledEdge, ...]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, ...]]Public attribute.
reachable_node_runtime_ids
Section titled “reachable_node_runtime_ids”reachable_node_runtime_ids: frozenset[str]Public attribute.