Forums

Full Version: Fixed Graph edge length based on edge weight?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am a newbie to prefuse, I have some questions about the "Graph View Applet Demo" which come with Prefuse package itself.

In GraphView.java, it reads a "socialnet.xml" file, which is GraphML. I want to know if it is possible to read a GraphML file includes edge weight, and display a fixed edge length in the graph.

For example assume the following edge n1 to n3 edge weight is 2, and n2 to n3 is 3,

<edge id="e1" source="n1" target="n3">
<data key="d1">2</data>
</edge>
<edge id="e2" source="n2" target="n3">
<data key="d1">3</data>
</edge>

How can I modify the demo to achieve a such graph with fixed edge based on edge weight?

Thanks a lot for any help.
Reference URL's