Published
Edited
Jan 19, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`
* Use graphviz for visualsing ideas (like brain maps)`
Insert cell
Insert cell
md`
* \`glueVetices: glue two vertices in one\`
* \`replace edge with vertex\`

*example:* edge \`has_method\` becomes node, and do adding edges to graph g1 \`Simplify--has_method, Expand--has_method, has_method--expression\`
`
Insert cell
function glueVertices(g, v1, v2) {
}
Insert cell
Insert cell
showGraph(g1, 10, themes.graySquares)
Insert cell
g2 = g1.filter(e => (z => e[0] == z || e[1] == z)('state'))
Insert cell
showGraph(g2, 8, themes.graySquares)
Insert cell
md`# List of siblings
* \`siblist: vertex\` ${tex`\rightarrow`} \`[vertex]\`
* \`delete_identical\: [vertex]\` ${tex`\rightarrow`} \`[vertex]\`
`
Insert cell
md`## Basic set theory operations
1. Complementarity
1. Union
1. Intersection
1. Cartesian Product`
Insert cell
md`
Properties that holds for \`union\` and \`intersection\`:
* Commutativity: ${tex` \,A \cap B = B \cap A`}
* Associativity: ${tex` \,(A \cap B) \cap C = A \cap (B \cap C)`}
`
Insert cell
Insert cell
getNeighbors = (g, v) => [...g.filter(e => e[0] === v || e[1] === v).getVertices()].filter(x => x !== v)
Insert cell
getNeighbors(g3, "Karlsruhe")
Insert cell
Insert cell
Insert cell
g3.show(8, themes.orangeSquares, edge => `${edge} km`)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more