striot-0.2.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.

bandwidthStyle :: StreamGraph -> Style StreamVertex String Source #

A specialised Style to annotate edges with calculated bandwidth XXX merge with jacksonStyle?

baseGraphStyle :: Style StreamVertex String Source #

the base Style information for StreamGraphs of all types.

jacksonStyle :: StreamGraph -> Style StreamVertex String Source #

A specialised Style for StreamGraphs annotated with Jackson parameters. Presently requires a StreamGraph argument.

enumGraphStyle :: Style StreamVertex String Source #

A StreamGraph Style where each Operator is annotated with its vertexId.