graphene-0.1.0.4: A minimal Graph Theory library.

Graphene.Class

Synopsis

data Graph e v Source

Graph with edge type e and vertex type v

e

v

Constructors

Fields

Instances

map over both vertices and edges

fold over both vertices and edges

map over vertices

fold over vertices

identity + binary function (mappend)

mappend

vertices :: Lens' (Graph e v) [v]Source

edges :: Lens' (Graph e v) [(e, (v, v))]Source