module Rigor::ModuleGraph::Mermaid

Renders edges as a Mermaid flowchart.

Mermaid does not have per-edge style classes the way DOT does; we use distinct arrow heads per kind (==>, -->, -.->) plus an :::kind classDef on the target node so the legend is readable in any Mermaid renderer.

When collapse: is given, every node whose name sits under one of the listed prefixes is wrapped in a subgraph <prefix> block, with the prefix stripped from the visible label.