braintools.analysis.graph.DegreeDistribution

braintools.analysis.graph.DegreeDistribution#

class braintools.analysis.graph.DegreeDistribution(degrees, values, counts)[source]#

Result of degree_distribution().

Variables:
  • degrees (numpy.ndarray) – Degree of every node, int64. Its length is the number of post neurons for direction='in', of pre neurons for 'out', and of nodes for 'total'.

  • values (numpy.ndarray) – Degree values 0, 1, ..., max(degrees) (int64).

  • counts (numpy.ndarray) – Number of nodes with each degree in values (int64, sums to len(degrees)).

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

counts

Alias for field number 2

degrees

Alias for field number 0

values

Alias for field number 1