std/graph¶
module graph
Graphs: nodes and the edges among them, structural only; what a node or
an edge means is the knowledge module's. There is no Node type: what
a node is arrives as a type parameter, so a graph over documents and a
graph over concepts share one declaration.
Edge— An edge fromsourcetotarget, withdataabout it.Graph— A graph: the set of itsnodes, which are cards, and the set of itsedges, the links among them.Link— An authored link from one document to another: anEdgebetween cards.HmdGraph— The document graph: aGraphof cards and the authoredLinks among them.uplinks— The edges of the linksxwrites to other cards: oneEdgeper authored link, itssourcethe cardx.downlinks— The edges of the links other cards of the vault write tox: oneEdgeper authored link, itstargetthe cardx.expand— The graph reached fromxby following linksdepthsteps,1unless given, indirection:"uplinks","downlinks"or"both", the default.