10-08-2008, 07:00 PM
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.
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.