Home > jung_demo

jung_demo

Jung_demo is a project mainly written in Java, it's free.

Demo for JUNG library

demo/sample code for JUNG to illustrate graph manipulation and computation of betweenness centrality

To prepare this code for eclipse, run the following maven command:

mvn eclipse:eclipse

which will generate the .classpath and .project files for eclipse.

Results for BetweennessCentralityDemo:

Vertices:V0,V1,V2,V3,V4
Edges: [V2,V3] [V1,V2] [V0,V1] [V3,V4] [V1,V4] 
BC for  V0  0.0
BC for  V1  7.0
BC for  V2  2.0
BC for  V3  1.0
BC for  V4  2.0

Results for EigenvectorCentralityDemo:

Vertices:V1,V3,V2,V4,V5,V0
Edges: [V2,V4] [V3,V2] [V4,V0] [V1,V5] [V4,V5] [V1,V1] [V3,V5] [V1,V3] 
EigenvectorCentrality for   V1  0.16666666666666666
EigenvectorCentrality for   V3  0.16666666666666666
EigenvectorCentrality for   V2  0.16666666666666666
EigenvectorCentrality for   V4  0.16666666666666666
EigenvectorCentrality for   V5  0.16666666666666666
EigenvectorCentrality for   V0  0.16666666666666666
Previous:brower.com