uskudnik/GraphGL — Issue #3: Does dynamic dataset supports weightd graph ?
Author: nulpoet
Created: 2012-01-31 06:58:01+00:00
State: open

I want to visualize a weighted dynamic graph.
I tried inputing following json file in the demo https://github.com/uskudnik/GraphGL/blob/master/dynamic-demos/java-dependencies.html.
```json
{"nodes": {
"1": "java.awt.MenuBar",
"2": "java.awt.peer.FramePeer",
"3": "java.awt.geom.NoninvertibleTransformException",
"4": "java.awt.geom.Point2D.Double"
},
"edges": [
{"source":"1", "weight":2, "target":"2", "edgeid":null},
{"source":"1", "weight":2, "target":"3", "edgeid":null},
{"source":"1", "weight":8, "target":"4", "edgeid":null}
]
}
```
The result is not as expected considering there is a repulsive force between all nodes ![Alt text](http://dl.dropbox.com/u/11753052/Screenshot.png "Optional title")
Ideally, this should yield a planar graph with nodes "2" & "3" on one side of the central node node "1" and "4" being on the other side with distance between "1" & "4" smaller than "1" & "2" or "1" & "3".
So, is this feature missing or I am missing something here?