striot-0.1.1.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Striot.VizGraph

Synopsis

Documentation

displayGraph :: StreamGraph -> IO () Source #

display a graph using GraphViz and "display" from ImageMagick

displayGraph' :: (t -> String) -> t -> IO () Source #

display a graph by applying a provided converter to the supplied StreamGraph

displayGraphKitty :: StreamGraph -> IO () Source #

display a graph inline in the Kitty terminal emulator

displayGraphDebug :: StreamGraph -> IO () Source #

display a debug graph using GraphViz and ImageMagick

displayPartitionedGraph :: PartitionedGraph -> IO () Source #

display a PartitionedGraph using GraphViz and "display" from ImageMagick

jacksonGraphToDot :: StreamGraph -> String Source #

Convert a StreamGraph into a GraphViz representation, including parameters derived from queueing theory/Jackson

partitionedGraphToDot :: PartitionedGraph -> String Source #

Convert PartitionedGraph into a GraphViz representation, with each sub-graph separately delineated, encoded in a String.

subGraphToPartition :: StreamGraph -> Int -> String Source #

generate a GraphViz subgraph definition (encoded into a String)c corresponding to a StreamGraph and an Int representing a label.

We place the Partition label at the bottom and offset it with some whitespace to reduce the likelyhood of the label being overdrawn by edges or edge labels.

writeGraph :: (t -> String) -> t -> String -> IO () Source #

Render a graph to a PNG using GraphViz and write it out to the supplied path.