Skip to main content

Module graph

Module graph 

Source
Expand description

The vault graph view (C0 1.9, section 3).

GET /v1/vaults/{vault_id}/graph?revision= → GraphV1 (right knowledge.read): one released revision’s knowledge as typed nodes and edges, for the web view and for engines that link it to their code graph. Hive derives it from the document, the anchors, the tasks and the contribution credits; nobody writes it.

With a published code graph (section 8, code_graph full, clear vaults) the code nodes and their contains|imports|calls edges come from it as well.

Node ids are typed so they never collide: fact:<fact id>, page:<page id>, code:<path> or code:<path>#<symbol>, task:<number>, proposal:<number>, actor:<label>.

Structs§

GraphEdgeV1
GraphNodeV1
GraphV1

Enums§

GraphNodeKind

Constants§

GRAPH_EDGE_TYPES
Edge types: the document’s relation types between facts (knowledge::RELATION_TYPES), plus the derived ones.
GRAPH_SCHEMA
MAX_GRAPH_EDGES
MAX_GRAPH_NODES