Skip to content

cambiatus/hs-xgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hs-xgraph

Experimental Haskell graph package -- to mirror the corresponding Elm package, sustainability_index_core.

Manual tests

The module Test.hs defines two sets of test data, the strings ex1 and ex2. Let's work with ex2:

*ghci > g = graphFromCSV ex2

*ghci > totalFlow g
456.19998

*ghci > efficiency g
621.70776

*ghci > resilience g
993.88025

*ghci > sustainability g
0.95643777

*ghci > alpha g
0.38481823

The results agree with those obtained using the Elm implementatin of this library at sustainability_index_core.

References

Monday Morning Haskell: Graphing it out

Data.Graph.Inductive.Graph

About

Experimental Haskell graph package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published