diff --git a/README.md b/README.md index 4832842318cecc0fde49a267c2ff57a2a146b002..af66ee55217385a04afc50c4410cc1a7f29854ea 100644 --- a/README.md +++ b/README.md @@ -196,5 +196,6 @@ data or mind maps. * [Mindmap](examples/mindmap.md) * [Gantt Diagram](examples/gantt.md) * [Visualising Software Architecture with the C4 Model](examples/c4.md) +* [GraphViz](examples/graphviz.md) * [Block Diagrams](examples/blockdiag.md) diff --git a/examples/graphviz.md b/examples/graphviz.md new file mode 100644 index 0000000000000000000000000000000000000000..c8de0305078c890c4e29c95dabf4fd9a68e01f06 --- /dev/null +++ b/examples/graphviz.md @@ -0,0 +1,30 @@ +# GraphViz + +```graphviz +digraph G { + concentrate=True; + rankdir=TB; + node [shape=record]; + 140087530674552 [label="title: InputLayer\n|{input:|output:}|{{[(?, ?)]}|{[(? , ?)]}}"]; + 140087537895856 [label="body: InputLayer\n|{input:|output:}|{{[(?, ?)]}|{[(?, ?)]}}"]; + 140087531105640 [label="embedding_2: Embedding\n|{input:|output:}|{{(?, ?)}|{ (?, ?, 64)}}"]; + 140087530711024 [label="embedding_3: Embedding\n|{input:|output:}|{{(?, ?)}|{ (?, ?, 64)}}"]; + 140087537980360 [label="lstm_2: LSTM\n|{input:|output:}|{{(?, ?, 64)}|{(?, 128)}}"]; + 140087531256464 [label="lstm_3: LSTM\n|{input:|output:}|{{(?, ?, 64)}|{(?, 32) }}"]; + 140087531106200 [label="tags: InputLayer\n|{input:|output:}|{{[(?, 12)]}|{[(? , 12)]}}"]; + 140087530348048 [label="concatenate_1: Concatenate\n|{input:|output:}|{{[(?, 128), (?, 32), (?, 12)]}|{(?, 172)}}"]; + 140087530347992 [label="priority: Dense\n|{input:|output:}|{{(?, 172)}|{(?, 1) }}"]; + 140087530711304 [label="department: Dense\n|{input:|output:}|{{(?, 172)}|{(?, 4)}}"]; + 140087530674552 -> 140087531105640; + 140087537895856 -> 140087530711024; + 140087531105640 -> 140087537980360; + 140087530711024 -> 140087531256464; + 140087537980360 -> 140087530348048; + 140087531256464 -> 140087530348048; + 140087531106200 -> 140087530348048; + 140087530348048 -> 140087530347992; + 140087530348048 -> 140087530711304; +} +``` + +Taken from <https://graphviz.org/Gallery/directed/neural-network.html>.