Ozgur Akgun wrote:
Thanks for the answer.

I see your point, that Ubigraph does some magic* to place vertices and
edges.
This makes me wonder, how they generate the binary tree demo:
http://ubietylab.net/ubigraph/content/Demos/random_binary_tree.html
Is there a way to disable this optimal graph layout determination process?

Best,
Ozgur


Ozgur,
I've just compared the way vacuum-ubigraph visualizes binary trees to the random_binary_tree demo and found that I had missed an important edge attribute called "oriented", it seems to produce the output you want.

I hope to upload the new package version soon, meanwhile you can do the following (assuming you use Linux):

cabal unpack vacuum-ubigraph
patch -d vacuum-ubigraph-0.1.0.3/ -p 1 < vacuum-ubigraph-oriented.patch
cd vacuum-ubigraph-0.1.0.3
cabal configure && cabal build && cabal install
diff -rupN vacuum-ubigraph-0.1.0.3/System/Vacuum/Ubigraph.hs vacuum-ubigraph-0.1.0.4/System/Vacuum/Ubigraph.hs
--- vacuum-ubigraph-0.1.0.3/System/Vacuum/Ubigraph.hs	2010-05-13 11:04:39.000000000 +0300
+++ vacuum-ubigraph-0.1.0.4/System/Vacuum/Ubigraph.hs	2010-05-13 10:51:47.000000000 +0300
@@ -58,6 +58,7 @@ view a = do
            e <- U.newEdge srv a b
            U.setEdgeAttribute srv e "stroke" "dotted"
            U.setEdgeAttribute srv e "arrow" "true"
+           U.setEdgeAttribute srv e "oriented" "true"
 
       srv = U.defaultServer
 
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to