[FIXED] Showing curved edges in a weighted directed graph?
Posted: 14 Jul 2010 12:12
Hi all,
I am very new to graph theory and network visualisation so I hope you will forgive me if there an obvious misunderstanding here on my part, or a simple and apparently obvious way to do this!
I am trying to visualise a simple directed network (I think!) connected by two edges per node as shown at the bottom of this message. When I visualise with the Force Atlas algorithm and display the edges as curved edges, the ones connecting for example Canada and the US are the same thickness, while one should be about 5 times thicker than the other (indicating an assymetrical relationship between these two countries).
Is there a way to have the graph show these bidirectional curved edges between two given nodes with their appropriate weights?
Much appreciation for any guidance you can offer!
Andrew
I am very new to graph theory and network visualisation so I hope you will forgive me if there an obvious misunderstanding here on my part, or a simple and apparently obvious way to do this!
I am trying to visualise a simple directed network (I think!) connected by two edges per node as shown at the bottom of this message. When I visualise with the Force Atlas algorithm and display the edges as curved edges, the ones connecting for example Canada and the US are the same thickness, while one should be about 5 times thicker than the other (indicating an assymetrical relationship between these two countries).

Much appreciation for any guidance you can offer!
Andrew
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.1draft" version="1.1">
<meta lastmodifieddate="2009-03-20">
<creator>Gexf.net</creator>
<description>First test of manually encoded data</description>
</meta>
<graph mode="static" defaultedgetype="directed">
<nodes>
<node id="Canada" label="Canada"/>
<node id="France" label="France"/>
<node id="Germany" label="Germany"/>
<node id="Italy" label="Italy"/>
<node id="Japan" label="Japan"/>
<node id="United Kingdom" label="United Kingdom"/>
<node id="United States" label="United States"/>
</nodes>
<edges>
<edge id="0" source="Canada" target="Canada" weight="1"/>
<edge id="0" source="Canada" target="United States" weight="0.1940814"/>
<edge id="0" source="Canada" target="United Kingdom" weight="0.05427539"/>
<edge id="0" source="Canada" target="France" weight="0.03898933"/>
<edge id="0" source="Canada" target="Germany" weight="0.03849978"/>
<edge id="0" source="Canada" target="Japan" weight="0.02061038"/>
<edge id="0" source="Canada" target="Italy" weight="0.01953261"/>
<edge id="0" source="France" target="France" weight="1"/>
<edge id="0" source="France" target="United States" weight="0.1077264"/>
<edge id="0" source="France" target="Germany" weight="0.0728741"/>
<edge id="0" source="France" target="United Kingdom" weight="0.07065262"/>
<edge id="0" source="France" target="Italy" weight="0.05412602"/>
<edge id="0" source="France" target="Canada" weight="0.03214583"/>
<edge id="0" source="France" target="Japan" weight="0.02109785"/>
<edge id="0" source="Germany" target="Germany" weight="1"/>
<edge id="0" source="Germany" target="United States" weight="0.1216888"/>
<edge id="0" source="Germany" target="United Kingdom" weight="0.06792334"/>
<edge id="0" source="Germany" target="France" weight="0.05264217"/>
<edge id="0" source="Germany" target="Italy" weight="0.03914655"/>
<edge id="0" source="Germany" target="Canada" weight="0.02292966"/>
<edge id="0" source="Germany" target="Japan" weight="0.02178827"/>
<edge id="0" source="Italy" target="Italy" weight="1"/>
<edge id="0" source="Italy" target="United States" weight="0.1140013"/>
<edge id="0" source="Italy" target="United Kingdom" weight="0.07024939"/>
<edge id="0" source="Italy" target="Germany" weight="0.06835502"/>
<edge id="0" source="Italy" target="France" weight="0.06827214"/>
<edge id="0" source="Italy" target="Canada" weight="0.02031312"/>
<edge id="0" source="Italy" target="Japan" weight="0.01573507"/>
<edge id="0" source="Japan" target="Japan" weight="1"/>
<edge id="0" source="Japan" target="United States" weight="0.08040417"/>
<edge id="0" source="Japan" target="Germany" weight="0.0216889"/>
<edge id="0" source="Japan" target="United Kingdom" weight="0.02057521"/>
<edge id="0" source="Japan" target="France" weight="0.01517098"/>
<edge id="0" source="Japan" target="Canada" weight="0.01221913"/>
<edge id="0" source="Japan" target="Italy" weight="0.008970295"/>
<edge id="0" source="United Kingdom" target="United Kingdom" weight="1"/>
<edge id="0" source="United Kingdom" target="United States" weight="0.1173371"/>
<edge id="0" source="United Kingdom" target="Germany" weight="0.06280775"/>
<edge id="0" source="United Kingdom" target="France" weight="0.04719359"/>
<edge id="0" source="United Kingdom" target="Italy" weight="0.03720145"/>
<edge id="0" source="United Kingdom" target="Canada" weight="0.02989074"/>
<edge id="0" source="United Kingdom" target="Japan" weight="0.01911277"/>
<edge id="0" source="United States" target="United States" weight="1"/>
<edge id="0" source="United States" target="United Kingdom" weight="0.03615102"/>
<edge id="0" source="United States" target="Germany" weight="0.0346681"/>
<edge id="0" source="United States" target="Canada" weight="0.03293082"/>
<edge id="0" source="United States" target="Japan" weight="0.0230114"/>
<edge id="0" source="United States" target="France" weight="0.02216981"/>
<edge id="0" source="United States" target="Italy" weight="0.01859997"/>
</edges>
</graph>
</gexf>