An algebra of graphs
A library for algebraic construction and manipulation of graphs in Haskell. The following series of blog posts describes the code in detail:
- Introduction: https://blogs.ncl.ac.uk/andreymokhov/an-algebra-of-graphs/
- A few different flavours of the algebra: https://blogs.ncl.ac.uk/andreymokhov/graphs-a-la-carte/
You can find more code in this old experimental repo: https://github.com/snowleopard/graph-algebra.