{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "DAG",
 "ref": "DAG#0c8a",
 "hash": "sema:DAG#mh:SHA-256:0c8ae9f4ab979af72ccf01ea840861e6e8473459598901236faf05294d5cb22b",
 "stub": "0c8a",
 "layer": "Infrastructure",
 "type": "Data Structures",
 "summary": "Directed acyclic dependency graph",
 "mechanism": "A directed acyclic graph Topology#58ad that allows branching (Parallelize#53a5) and merging, but forbids cycles. It models complex dependency chains where tasks can run concurrently but must respect precedence.",
 "invariants": [
  "Acyclic: no path leads from a node back to itself.",
  "Edges are directed.",
  "Rooted: exactly one node has no predecessor, named by `root_id`.",
  "Nodes with no directed path between them may run concurrently."
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Cycle on insert: an added edge closes a loop, which the acyclicity invariant forbids and which must be detected at insertion rather than at traversal.",
  "False precedence: an edge asserts a dependency that does not exist, serialising work that could have run concurrently."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "DAG",
 "builds_on": [
  {
   "alias": "topology",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Topology",
   "ref": "Topology#58ad",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Topology"
  },
  {
   "alias": "parallelize",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Parallelize",
   "ref": "Parallelize#53a5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Parallelize"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "GraphOfThought",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/GraphOfThought"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/DAG",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/DAG.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
