caffeine_lang/codegen/graph_data

Types

Complete graph data with nodes and edges.

pub type GraphData {
  GraphData(nodes: List(GraphNode), edges: List(GraphEdge))
}

Constructors

A directed edge in the dependency graph.

pub type GraphEdge {
  GraphEdge(
    source: String,
    target: String,
    relation_type: String,
  )
}

Constructors

  • GraphEdge(source: String, target: String, relation_type: String)

A node in the dependency graph representing a single expectation.

pub type GraphNode {
  GraphNode(
    id: String,
    label: String,
    service: String,
    org: String,
    team: String,
  )
}

Constructors

  • GraphNode(
      id: String,
      label: String,
      service: String,
      org: String,
      team: String,
    )

Values

pub fn generate(
  irs: List(ir.IntermediateRepresentation(ir.Resolved)),
) -> GraphData

Generates structured graph data from resolved IRs. Nodes are derived from all IRs; edges come from DependencyRelations artifacts.

Search Document