Skip to main content

derived

Function derived 

Source
pub fn derived(
    graph: &Graph,
    saves: &BTreeMap<String, Save>,
) -> Vec<(Kind, String, String)>
Expand description

The links between the values of one fact that every Instance derives on read, from the folded graph and the save history alone: the same resolution as plan, before (or without) its edge reaching this replica. Without it, an Instance that pulled both values of a fact served them as two plain claims until the one Instance the resolution names had written its edge and this one had pulled it (#286).

A node is grouped by the subject in its body (nodes captured before subjects are left to their author’s edge). Sequential edits come first: the older value is superseded, then the open values left in a group contradict each other pairwise. Pairs a folded contradicts or supersedes edge already links, retracted or not, are skipped first, as in plan. Returns (kind, from, to) in a stable order.