School
Work
At their core:
We should be concerned with:
Frame communication around these
mygraph.dot
Generate a PNG
Scale the PNG
Export to SVG
digraph g {
client [label="client"]
load_balancer [label="load\nbalancer"]
server [label="server"]
db [shape="cylinder" label="db"]
files [shape="folder" label="file\nbucket"]
client -> load_balancer [label="request"]
load_balancer -> server [label="route"]
server -> {
files
db
} [label="request"]
}
digraph g {
rankdir=LR
node [colorscheme=pastel25]
praecoquum [
shape="rectangle" style=filled
fillcolor="1"
label="praecoquum\n------\nLate Latin\nearly-ripening apples"
]
praecocia [
shape="rectangle" style=filled
fillcolor="1"
label="praecocia\n------\nLate Latin\nearly-ripening peaches"
]
praekokion [
shape="rectangle" style=filled
fillcolor="2"
label="πραικόκιον\npraekokion\n------\nAncient Greek\napricot"
]
berikokkia [
shape="rectangle" style=filled
fillcolor="2"
label="βερικοκκία\nberikokkia\n------\nByzantine Greek\napricot tree"
]
albarqūq [
shape="rectangle" style=filled
fillcolor="3"
label="الْبَرْقُوق\nal-barqūq\n------\nArabic\nplums"
]
albercoc [
shape="rectangle" style=filled
fillcolor="4"
label="albercoc\n------\nCatalan\napricot"
]
abrecoc [
shape="rectangle" style=filled
fillcolor="4"
label="abrecoc\n------\ndialectical Catalan\napricot"
]
apricum [
shape="rectangle" style=filled
fillcolor="1"
label="apricum\n------\nLatin\nsunny place"
]
abrecock [
shape="rectangle" style=filled
fillcolor="5"
label="abrecock\n------\nEnglish\nobsolete form of apricot"
]
abricot [
shape="rectangle" style=filled
fillcolor="4"
label="abricot\n------\nFrench\napricot"
]
apricock [
shape="rectangle" style=filled
fillcolor="5"
label="apricock\n------\nEnglish\narchaic form of apricot"
]
apricot [
shape="rectangle" style=filled
fillcolor="5"
label="apricot"
]
praecoquum -> praecocia
praecocia -> praekokion
praekokion -> berikokkia
berikokkia -> albarqūq
albarqūq -> albercoc
albercoc -> abrecoc [label="dialectical\nvariation"]
abrecoc -> abrecock
abrecoc -> abricot
apricum -> apricock [label="influenced"]
abrecock -> apricock [label="alteration"]
abricot -> apricot [label="influenced"]
apricock -> apricot
}
See: Wiktionary - Apricot
Apricot History Map
Structure Narrative
digraph G {
rankdir="LR"
ratio=auto
ranksep=auto
label="Sculpting Supply Store"
labelloc="t"
// Nodes
subgraph cluster_supply_chain {
label="Supply Chain"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#E5F5FD"
subgraph cluster_raw_materials {
label="Raw Materials"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
mine [label="Mine"]
}
subgraph cluster_clay_supply {
label="Clay"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clay_supplier [label="Clay\nSupplier"]
}
subgraph cluster_tool_supply {
label="Tools"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
tool_manufacturer [label="Tool\nManufacturer"]
tool_supplier [label="Tool\nSupplier"]
tool_manufacturer -> tool_supplier [label="Provides"]
}
mine -> tool_manufacturer [label="Provides"]
}
subgraph cluster_store {
label="Store"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#E5F5FD"
subgraph cluster_inventory {
label="Inventory"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clay_inventory [label="Clay\nInventory"]
tool_inventory [label="Tool\nInventory"]
}
subgraph cluster_staff {
label="Staff"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clerk [label="Clerk"]
general_manager [label="General\nManager"]
general_manager -> clerk [label="supports"]
}
}
// Edges
mine -> clay_supplier [label="Provides"]
clay_supplier -> clay_inventory [label="Restocks"]
tool_supplier -> tool_inventory [label="Restocks"]
clerk -> clay_inventory [label="Manages"]
clerk -> tool_inventory [label="Manages"]
general_manager -> clay_supplier [label="Coordinates\nwith"]
general_manager -> tool_supplier [label="Coordinates\nwith"]
}
digraph G {
rankdir="BT"
ratio=1
ranksep=auto
label="Sculpting Supply Store"
labelloc="t"
// Nodes
subgraph cluster_supply_chain {
label="Supply Chain"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#E5F5FD"
subgraph cluster_raw_materials {
label="Raw Materials"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
mine [label="Mine"]
}
subgraph cluster_clay_supply {
label="Clay"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clay_supplier [label="Clay\nSupplier"]
}
subgraph cluster_tool_supply {
label="Tools"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
tool_manufacturer [label="Tool\nManufacturer"]
tool_supplier [label="Tool\nSupplier"]
tool_manufacturer -> tool_supplier [label="Provides"]
}
mine -> tool_manufacturer [label="Provides"]
}
subgraph cluster_store {
label="Store"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#E5F5FD"
subgraph cluster_inventory {
label="Inventory"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clay_inventory [label="Clay\nInventory"]
tool_inventory [label="Tool\nInventory"]
}
subgraph cluster_staff {
label="Staff"
style=rounded
style=filled
pencolor="#AEB6BE"
bgcolor="#EBF3E7"
clerk [label="Clerk"]
general_manager [label="General\nManager"]
general_manager -> clerk [label="supports"]
}
}
// Edges
mine -> clay_supplier [label="Provides"]
clay_supplier -> clay_inventory [label="Restocks"]
tool_supplier -> tool_inventory [label="Restocks"]
clerk -> clay_inventory [label="Manages"]
clerk -> tool_inventory [label="Manages"]
general_manager -> clay_supplier [label="Coordinates\nwith"]
general_manager -> tool_supplier [label="Coordinates\nwith"]
}
CSS
SCSS
Source: SCSS Documentation
import React from 'react';
import {StyleSheet, Text} from 'react-native';
import {
SafeAreaView,
SafeAreaProvider
} from 'react-native-safe-area-context';
const App = () => (
<SafeAreaProvider>
<SafeAreaView style={styles.container}>
<Text style={styles.title}>React Native</Text>
</SafeAreaView>
</SafeAreaProvider>
);
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 24,
backgroundColor: '#eaeaea',
},
title: {
marginTop: 16,
paddingVertical: 8,
borderWidth: 4,
borderColor: '#20232a',
borderRadius: 6,
backgroundColor: '#61dafb',
color: '#20232a',
textAlign: 'center',
fontSize: 30,
fontWeight: 'bold',
},
});
export default App;
Source: React Native Docs - Stylesheet
VSCode Open Configure Snippets
VSCode Open Snippets File
VSCode Snippet Graph Template
VSCode Snippet Cluster Colors
Add to
Crabviz - Codebase Inspection
Obsidian Inline Graphviz
Obsidian Community Plugins - Graphviz
Obsidian Graph View
Obsidian Graph View - Filtered to Tag
Other visualization tasks
Frequent native support in Markdown tools
Different rendering style, implications for complicated graphs
Source: mermaid.js.org
sequenceDiagram autonumber Alice->>John: Hello John, how are you? loop HealthCheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!
Obsidian Inline Mermaid
erDiagram direction LR CUSTOMER ||--o{ ORDER : places CUSTOMER { string name string custNumber string sector } ORDER ||--|{ LINE-ITEM : contains ORDER { int orderNumber string deliveryAddress } LINE-ITEM { string productCode int quantity float pricePerUnit }