Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect dynamic dataset visualization #3

Open
nulpoet opened this issue Jan 31, 2012 · 0 comments
Open

Incorrect dynamic dataset visualization #3

nulpoet opened this issue Jan 31, 2012 · 0 comments

Comments

@nulpoet
Copy link

nulpoet commented Jan 31, 2012

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.

{"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 each pair of nodes Alt text
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.
Also, if it considers edge weights then distance between "1" & "4" smaller than "1" & "2" or "1" & "3".
So, what am I missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant