openregs graph
Work with a regime’s cross-reference graph.
The canon is one file per legal unit, which is the right shape for reviewing law and the wrong shape for answering questions about it. The graph is the edges the text states and the layout does not: what cites what, which unit defines a term another one uses, what amends what, and what is disapplied for whom.
openregs graph [-h] <command> ...openregs graph build
Section titled “openregs graph build”Derive the edge list from a regime’s canon and atoms.
Rebuild regimes/
openregs graph build [-h] --regime <name> [--root <path>] [--out <path>]| Option | |
|---|---|
--regime <name> | the regime to build, for example fixreg (required) |
--root <path> | read regimes/ under this directory instead of the checkout |
--out <path> | write the edge list here instead of regimes/<regime>/graph/edges.yaml |
Rendered from openregs/openregs@cbe9615:tooling/openregs/cli/main.py