Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple wrapper for Data.Graph.Inductive.
Haskell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Data/Graph
LICENSE
README.lhs
Sample.hs
Setup.hs
graph-utils.cabal

README.lhs

> {-# LANGUAGE TemplateHaskell, QuasiQuotes #-}

= Requirements
parsec >= 3.0, fgl

= INSTALL
$ cabal configure
$ cabal build
$ cabal install

= Usage

> import Data.Graph.Inductive
> import Data.Graph.EasyGrapher
> import Data.Graph.PageRank
> 
> main = do
>   print (pageRanks ([$gr| D1 -> D2, D1 -> D3, D1 -> D4, D2->D3, D2->D5, D3-> D4, D4->D1, D5 -> D3|] :: Gr String()) 0.4 0.05)
>   print ([$gr| a -> b, b -> 1, 1 -> c |] :: Gr String ())
Something went wrong with that request. Please try again.