DOT OUTPUT FORMAT:

  Graphviz DOT language with the following structure:

    digraph {
      rankdir=LR
      node [shape=box]
      "doc-key" [label="Document Title"]
      "doc-key" -> "referenced-key"
    }

  With --include-headers, sections become subgraphs:

    digraph {
      subgraph cluster_doc_key {
        label="Document Title"
        style=filled
        fillcolor="#..."
        "doc-key/section" [label="Section"]
      }
    }

STRUCTURAL SET SELECTOR (--in family):

  --in KEY[:DEPTH]      Restrict to sub-documents of EVERY listed key (AND). Repeatable.
  --in-any KEY[:DEPTH]  Restrict to sub-documents of AT LEAST ONE listed key (OR).
  --not-in KEY[:DEPTH]  Exclude sub-documents of any listed key (NOT).
  --max-depth N         Default depth for entries without :DEPTH. Unbounded if omitted.

EXAMPLES:

  # Export entire graph
  iwe export

  # Export specific document(s) and connections (-k is repeatable)
  iwe export --key project-main
  iwe export -k project-main -k project-beta

  # Include section headers for detailed view
  iwe export --include-headers

  # Control connection depth
  iwe export --key index --depth 2

  # Restrict to a subtree via the selector
  iwe export --in projects/alpha
  iwe export --in projects/alpha --not-in archive

USING DOT OUTPUT:

  # Generate PNG visualization
  iwe export > graph.dot
  dot -Tpng graph.dot -o graph.png

  # Generate SVG for web use
  iwe export --include-headers > detailed.dot
  dot -Tsvg detailed.dot -o detailed.svg

  # Interactive exploration with xdot
  iwe export | xdot -
