flocc-pffb

Stabilityexperimental
Maintainerdeveloper@flocc.net
Safe HaskellNone

Compiler.Back.ShowGraph

Description

For more information please see http://www.flocc.net/

Synopsis

Documentation

type ShowNodeFunc n m = n -> m String

showNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)

showNodeFrom map is a ShowNodeFunc that takes a map of idx's to strings |and returns that string for every node in the map.

showNodeNothing :: Monad m => ShowNodeFunc Node m

showNodeNothing is the default ShowNodeFunc that just calles the dotDraw function for |the node it is passed.

dotDrawSubgraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String

dotDrawSubgraph takes a display function and a digraph and renders it |in an xdot cluster subgraph.

dotDrawSubgraphs :: Monad m => ShowNodeFunc Node m -> Node -> StateT IdxSet m String

dotDrawSubgraphs takes a graph node and outputs all of |it's subgraphs.

dotDrawEdges :: Node -> String

dotDrawEdges takes a graph node and returns a ; delimited list of |edges in dot format.

dotDrawGraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String

dotDrawGraph takes a graph and draws it the internals |of a graphviz dot file.

class DotDrawable a where

DotDrawable exports the dotDraw function.

Methods

dotDraw :: a -> String

Instances

DotDrawable Graph

Instance of DotDrawable for Digraphs.

DotDrawable Node

Instance of DotDrawable for graph nodes.

DotDrawable NodeTy

Instance of DotDrawable for graph node attributes.

showDFNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)

showNodeFrom map is a ShowNodeFunc that takes a map of idx's to strings |and returns that string for every node in the map.