algebraic-graphs (hackage): Alga is a library for algebraic construction and manipulation of graphs in Haskell. See this paper for the motivation behind the library, the underlying theory and implementation details.  The top-level module Algebra.Graph defines the main data type for algebraic graphs Graph, as well as associated algorithms. For type-safe representation and manipulation of non-empty algebraic graphs, see Algebra.Graph.NonEmpty. Furthermore, algebraic graphs with edge labels are implemented in Algebra.Graph.Labelled.  The library also provides conventional graph data structures, such as Algebra.Graph.AdjacencyMap along with its various flavours:  adjacency maps specialised to graphs with vertices of type Int (Algebra.Graph.AdjacencyIntMap),  non-empty adjacency maps (Algebra.Graph.NonEmpty.AdjacencyMap),  adjacency maps for undirected bipartite graphs (Algebra.Graph.Bipartite.AdjacencyMap),  adjacency maps with edge labels (Algebra.Graph.Labelled.AdjacencyMap),  acyclic adjacency maps (Algebra.Graph.Acyclic.AdjacencyMap),  A large part of the API of algebraic graphs and adjacency maps is available through the Foldable-like type class Algebra.Graph.ToGraph.  The type classes defined in Algebra.Graph.Class and Algebra.Graph.HigherKinded.Class can be used for polymorphic construction and manipulation of graphs.  This is an experimental library and the API is expected to remain unstable until version 1.0.0. Please consider contributing to the on-going discussions on the library API.
Keywords: algebra|algorithms|data-structures|graphs|library|mit|graph|haskell