Skip to main content

composed_complete

Function composed_complete 

Source
pub fn composed_complete(registry: &CapabilityRegistry, index: &Index) -> Graph
Expand description

The composed graph whole, every object of the index in it: what the generated docs/generated/graph.json carries and what the development-context compiler selects from. MAX_NODES bounds a graph a person is shown; a reader of the graph as data — the site’s entity pages and catalogue counts, a context selection — would take a prefix for the repository and miss whatever sorted past it.

It has no node bound, so its size is a measurement rather than a limit. Measured on master 97c4521f91 (2026-10-14): 2795 nodes, 6128 edges and 3,339,236 bytes of docs/generated/graph.json, already past MAX_NODES. Generation still passes it through whole, so a bound that comes back refuses the derive instead of committing a prefix (I1966).

use majordomus_cli::graph;
use majordomus_cli::synthetic::SyntheticRepository;

let repo = SyntheticRepository::small().unwrap();
let ctx = repo.context().unwrap();
let whole = graph::composed_complete(&ctx.registry, ctx.index.as_ref());
assert_eq!(whole.id, graph::COMPOSED);
assert!(!whole.metadata.truncated);