Skip to content
/ pangraph Public

A Haskell library for mathematical graph parsing and writing.

License

Notifications You must be signed in to change notification settings

tuura/pangraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pangraph Build Status

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.
a-sample-graph
Source: Mokhov, et al. (2017)

Contents

  1. Usage
  2. Building
  3. Graph File Support
  4. Library support

Usage

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.

Building

Using cabal, dependencies track stack lts where possible.

cabal update
cabal new-build
cabal new-test

Or Stack

stack init
stack test

Graph File Support

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

Graph Library support

  • Convert: Via the ToGraph interface in Pangraph
  • Revert: Unimplemented

Currently implements:

  • Convert: Pangraph.Containers
  • Revert: Unimplemented

Currently implements:

  • Convert: Pangraph.FGL
  • Revert: Unimplemented

About

A Haskell library for mathematical graph parsing and writing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published