dot-0.2.0: Data types and encoding for graphviz dot files

Safe HaskellNone
LanguageHaskell2010

Data.Graph.Immutable.Dot

Synopsis

Documentation

toDotGraph :: Directionality -> (v -> [Attribute]) -> (v -> v -> e -> [Attribute]) -> Graph g e v -> DotGraph Source #

This is a fairly general way to build a dot file from a graph.

toLabeledDotGraph :: Directionality -> (v -> Text) -> (e -> Text) -> Graph g e v -> DotGraph Source #

This is a more convenient variant of toDotGraph that just labels all of the nodes and edges. It does not color or style anything.