hubigraph: A haskell wrap for Ubigraph

[ bsd3, graphics, library ] [ Propose Tags ]

Hubigraph is a Haskell wrapper for Ubigraph, which is a tool for visualizing dynamic graphs.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.1, 0.3.2
Dependencies base (>=3 && <5), containers (>=0.2.0.0), haxr (>=3000.2.1), mtl (>=1.1.0.1) [details]
License BSD-3-Clause
Author Kohei Ozaki <eowner@gmail.com>
Maintainer Matei Tene <matei.tene@cti.pub.ro>
Category Graphics
Home page http://ooxo.org/hubigraph/
Uploaded by KoheiOzaki at 2011-01-18T16:53:13Z
Distributions NixOS:0.3.2
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 1866 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for hubigraph-0.3.2

[back to package description]

Hubigraph

http://ooxo.org/hubigraph/

DESCRIPTION

a Haskell wrap for Ubigraph (http://www.ubietylab.net/ubigraph)

FEATURES/PROBLEMS

It provides a shortcut to draw a graph in ubigraph (by calling XML-RPC internally.)

SYNOPSIS

Make sure Ubigraph server is started before using this library.

 import Graphics.Ubigraph

 u x = initHubigraph "http://localhost:20738/RPC2" >>= runHubigraph x

 main = u $ mkRing 10

 mkRing n = do mapM_ (newVertexWithID) [0..(n-1)]
               mapM_ (newEdge') [0..(n-1)]
               sid <- newVStyle 0
               setVStyleAttr (VColor "#ff0000") sid
               setVStyleAttr (VShape Sphere) sid
               mapM_ (changeVStyle sid) [0..(n-1)]
     where newEdge' e = newEdge (e, (e+1) `mod` n)

REQUIREMENTS

Ubigraph (http://www.ubietylab.net/ubigraph).

INSTALL

$ cabal install hubigraph

LICENSE

The BSD3 License