mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.63k stars 6.05k forks source link

Property Graph #5600

Open wj3171868 opened 4 days ago

wj3171868 commented 4 days ago

Proposal

Support for property graphs diagrams, similar to https://arrow.app . Neo4j and other similar products have ways to visualize nodes and edges of a graph based on data. I haven't found a decent way model these relationships in Mermaid. An ER diagram doesn't quite work and a flow diagram also doesn't work either. A mix between the two is kind of what I'm looking for.

My intention isn't to visualize lots of data but to represent expected relationships between nodes along with expected properties.

Lots of other diagramming applications have various issues with representing property graphs or RDF graphs

Use Cases

Modelling property graphs, RDF graphs.

ER diagrams don't support representing direction. Graph diagrams don't really handle having properties.

Screenshots

Property Graphs and RDF graphs are fairly well understood.

https://neo4j.com/docs/getting-started/appendix/graphdb-concepts/

Syntax

There are a lot of proposed formats for representing property graphs as text or json. One example would be pg-format.

https://pg-format.readthedocs.io/en/0.3/contents/reference.html

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.