Pangraph is a Haskell library which offers parsing and serializations for graph files. As well as conversions to other Haskell graph formats. An example format is GraphML. A graphml file
could for example represent the following graph, with vertices from A
to E
and connections, the edges, between them.
Source:
Mokhov, et al. (2017)
Pangraph provides an API in the module Pangraph
for construction and
manipulation of graphs. The parsers in the library use this module to
generate pangraphs. Parsers and serializers are imported from modules
individually. This example shows imports for GraphML.
import Pangraph.GraphML.Parser (parse)
import Pangraph.GraphML.Writer (write)
Usage of multiple file types in the same module will require
qualified imports. Please see src/Pangraph/Examples
for further examples.
Using cabal, dependencies track stack lts where possible.
cabal update
cabal new-build
cabal new-test
Or Stack
stack init
stack test
GML files are currently:
- Parsing: Ok
- Writing: Ok
Node: See
Pangraph.Gml.*
GraphML files are currently:
- Parsing: Ok
- Writing: Ok
Workcraft files are currently:
- Parsing: Unimplemented
- Writing: Unimplemented
- Convert: Via the
ToGraph
interface inPangraph
- Revert: Unimplemented
Currently implements:
- Convert:
Pangraph.Containers
- Revert: Unimplemented
Currently implements:
- Convert:
Pangraph.FGL
- Revert: Unimplemented