braintools.analysis.graph.PathLengthResult#
- class braintools.analysis.graph.PathLengthResult(path_length, efficiency, n_reachable, n_sources)[source]#
Result of
characteristic_path_length().- Variables:
path_length (float) – Mean shortest-path length (in hops) over the ordered pairs
(source, target),source != target, wheretargetis reachable fromsource.nanwhen no pair is reachable.efficiency (float) – Global efficiency: the mean of
1 / d(source, target)over all ordered pairs withsource != target, unreachable pairs counting as 0.0for a graph with fewer than two nodes.n_reachable (int) – Number of reachable ordered pairs the mean
path_lengthis over.n_sources (int) – Number of source nodes used (all nodes unless sampled).
- __init__()#
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
efficiencyAlias for field number 1
n_reachableAlias for field number 2
n_sourcesAlias for field number 3
path_lengthAlias for field number 0