Skip to content

Commit

Permalink
add design decision about graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Sep 25, 2024
1 parent e034fe7 commit 219ac9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/tour/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,15 @@ aesthetics, but it must be decoupled with the content.

D2 is the only language that allows you to define just nodes and edges, and import all the
styles in a separate file, and swap out that file for different aesthetics.

## Whiteboard-fit

While "graph" and "diagram" are often interchangeable terms, for D2's purposes, a diagram
is a simplified representation that can fit on a large whiteboard. After a certain number
of nodes and edges, e.g. 1000 nodes, the representation becomes more like a graph from
graph theory than a software architecture diagram. Their use case is less understanding
each individual shape and connection and more seeing the general patterns. D2 is not
designed for this use case. There are much better tools for that.


<img src={require('@site/static/img/screenshots/graph.png').default} width="300" alt="graph example"/>
Binary file added static/img/screenshots/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 219ac9d

Please sign in to comment.