https://github.com/konn/graph-utils
A simple wrapper for Data.Graph.Inductive.
https://github.com/konn/graph-utils
Last synced: about 1 month ago
JSON representation
A simple wrapper for Data.Graph.Inductive.
- Host: GitHub
- URL: https://github.com/konn/graph-utils
- Owner: konn
- License: bsd-3-clause
- Created: 2010-06-23T16:47:37.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-06-29T14:06:30.000Z (almost 15 years ago)
- Last Synced: 2025-03-24T21:38:40.218Z (about 2 months ago)
- Language: Haskell
- Homepage: http://haskell.g.hatena.ne.jp/mr_konn/
- Size: 121 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.lhs
- License: LICENSE
Awesome Lists containing this project
README
> {-# 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 ())