My graphs are weighted and undirected, and the weights are the node-to-
node resistances I talked about earlier.
This is from sfs60_res.txt:
Number of edges: 703
Degree Distribution: {1: 37, 2: 37, 3: 37, 4: 37, 5: 37, 6: 37, 7: 37,
8: 37, 9: 37, 10: 37, 11: 37, 12: 37, 13: 37, 14: 37, 15: 37, 16: 37,
17: 37, 18: 37, 19: 37, 20: 37, 21: 37, 22: 37, 23: 37, 24: 37, 25:
37, 26: 37, 27: 37, 28: 37, 29: 37, 30: 37, 31: 37, 32: 37, 33: 37,
34: 37, 35: 37, 36: 37, 37: 0, 38: 37, 39: 37}
All nodes are connected to all others excepted for node 37, which is
isolated
Centralities: {1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0.0, 6: 0.0, 7: 0.0,
8: 0.0, 9: 0.0, 10: 0.0, 11: 0.0, 12: 0.0, 13: 0.0, 14: 0.0, 15: 0.0,
16: 0.0, 17: 0.0, 18: 0.0, 19: 0.0, 20: 0.0, 21: 0.0, 22: 0.0, 23:
0.0, 24: 0.0, 25: 0.0, 26: 0.0, 27: 0.0, 28: 0.0, 29: 0.0, 30: 0.0,
31: 0.0, 32: 0.0, 33: 0.0, 34: 0.0, 35: 0.0, 36: 0.0, 37: 0.0, 38:
0.0, 39: 0.0}
This is from amph60_res.txt:
Number of edges: 903
Degree Distribution: {1: 42, 2: 42, 3: 42, 4: 42, 5: 42, 6: 42, 7: 42,
8: 42, 9: 42, 10: 42, 11: 0, 12: 42, 13: 42, 14: 42, 15: 42, 16: 42,
17: 42, 18: 42, 19: 42, 20: 0, 21: 0, 22: 42, 23: 42, 24: 42, 25: 42,
26: 42, 27: 0, 28: 42, 29: 42, 30: 42, 31: 42, 32: 42, 33: 42, 34: 42,
35: 42, 36: 42, 37: 42, 38: 42, 39: 42, 40: 42, 41: 42, 42: 42, 43:
42, 44: 42, 45: 42, 46: 42, 47: 42}
Again, most nodes are connected to all others except for a few which
are isolated.
Centralities: {1: 0.0, 2: 0.0, 3: 0.0, 4: 0.0, 5: 0.0, 6: 0.0, 7: 0.0,
8: 0.0, 9: 0.0, 10: 0.0, 11: 0.0, 12: 0.0, 13: 0.0, 14: 0.0, 15: 0.0,
16: 0.0, 17: 0.0, 18: 0.0, 19: 0.0, 20: 0.0, 21: 0.0, 22: 0.0, 23:
0.0, 24: 0.0, 25: 0.0, 26: 0.0, 27: 0.0, 28: 0.0, 29: 0.0, 30: 0.0,
31: 0.0, 32: 0.0, 33: 0.0, 34: 0.0, 35: 0.0, 36: 0.0, 37: 0.0, 38:
0.0, 39: 0.0, 40: 0.0, 41: 0.0, 42: 0.0, 43: 0.0, 44: 0.0, 45: 0.0,
46: 0.0, 47: 0.0}
I am not including the graph from rcw60_res.txt because it is too
large and takes too long to generate the centralities.
It just occurred to me that maybe I am misunderstanding the way
NetworkX works on weighted graphs. Does it assume all edges have equal
weight, compute the shortest paths, and only after sum the weights
along the shortest paths? This would explain why my particular
examples are giving me centralities of zero.
Thanks again
Austin
On May 16, 9:13 am, Aric Hagberg <
ahagb...@gmail.com> wrote: