Copyright | (c) Oleksandr Zhabenko 2017-2023 |
---|---|
License | MIT |
Maintainer | oleksandr.zhabenko@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions | BangPatterns |
A program gvti
converts a specially formated .csv
file with a special field separator obtained from the electronic table
into a visualized by GraphViz graph in the one of the supported by GraphViz graphics format. The proper GraphViz installation is required.
This is the main functionality module.
Documentation
getFormat :: String -> String Source #
For the given argument (usually of two characters) return the full form of the file format to be generated by GraphViz and mmsyn4
. The default one
is "svg".
process2 :: String -> String -> String -> String -> String -> String -> Maybe (Double, Double) -> String -> String -> IO () Source #
Processes the given text (the last String
argument). The first String
argument is
the list oof delimiters every one of which will mark the edge in the resulting digraph.
The second one is used to get a name of the command to be
executed to obtain a visualization file. The third argument is used for the getFormat
. The fourth argument is the
basic name for the created files (without prefixes and extensions), the fifth one is an option for GraphViz splines
functionality. The sixth argument is used to specify whether to remove at-signs from the created files.
The Maybe
argument specifies the optional maximum size for the created visualization image in inches.
The next argument specifies the aspect ratio (drawing height/drawing width) for the drawing.