GenogramMaker. Mermaid
(GenogramMaker v0.1.0)
Copy Markdown
Render a GenogramMaker to Mermaid flowchart source you
can paste straight into Markdown (GitHub, docs sites, notebooks).
Conventions applied:
- shapes —
:male→ rectangle["…"],:female→ circle(("…")),:unknown→ diamond{"…"}; - each union is a stadium node
(["married"])labelled with the relationship, linking the two partners and any children; - bonds are labelled links carrying the bond type.
Mermaid's flowchart layout is less precise than Graphviz for multi-generation
families; use GenogramMaker.to_dot/1 when you need accurate genogram spacing.
Summary
Functions
Encode a genogram as a Mermaid flowchart string.
Functions
@spec encode(GenogramMaker.t()) :: String.t()
Encode a genogram as a Mermaid flowchart string.