gvti-0.4.1.0: GraphViz Tabular Interface
Copyright(c) Oleksandr Zhabenko 2017-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010
ExtensionsBangPatterns

GVTI

Description

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.

Synopsis

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.

makeRecordGv :: String -> Maybe (Double, Double) -> String -> (Array Int String, String) -> String Source #

Makes all needed additions and synthesizes into a single String ready to be recorded to the .gv file.