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

modified parser

latest commit 9f01fbe949
Hiromi Ishii authored
Failed to load latest commit information.
Data/Graph modified parser
LICENSE Finally fixed .cabal file bug
README.lhs Add Antiquote supports.
Sample.hs modified parser
Setup.hs first commit
graph-utils.cabal modified parser

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.