Experimental Haskell graph package -- to mirror the corresponding Elm package, sustainability_index_core
.
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
.