Networks
Nodes of networks shared by the mathematics packages.
They are network nodes, regulated nodes, and vertices.
NetworkNodeElement(label, *, degree=0.0, clustering=0.0, betweenness=0.0, community=0.0, size=None, space=None)
Bases: Element
Nodes of a network, each with its degree, clustering, betweenness, and community.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
The label of the nodes. |
required |
degree
|
Annotated[object, NN]
|
The degree of every node, one per node or shared. |
0.0
|
clustering
|
Annotated[object, closed_open(0, oo)]
|
The clustering coefficient of every node, one per node or shared. |
0.0
|
betweenness
|
Annotated[object, closed_open(0, oo)]
|
The normalized betweenness centrality of every node, one per node or shared. |
0.0
|
community
|
Annotated[object, NN]
|
The index of the community of every node, one per node or shared. |
0.0
|
size
|
int | None
|
The number of nodes, or |
None
|
space
|
BaseSpace | None
|
The network with one node per site, or |
None
|
Examples:
>>> from skcomplex.systems.mathematics.networks import NetworkNodeElement
>>> NetworkNodeElement('nodes', degree=[1.0, 2.0, 1.0], size=3).degree
[1.0, 2.0, 1.0]
Source code in src/skcomplex/systems/mathematics/common/networks/_network_node.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
RegulatedNodeElement(label, *, active=1.0, space=None)
Bases: Element
Node of a network with triadic regulation.
The node is active when it belongs to the giant component of the active links.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
The label of the node group. |
required |
active
|
Annotated[object, FiniteEnumeratedSet([0, 1])]
|
1 when the node is in the giant component of the active links, and 0 otherwise. |
1.0
|
space
|
BaseSpace | None
|
The network whose nodes hold one member each, or |
None
|
Examples:
>>> from skcomplex.systems.mathematics.networks import RegulatedNodeElement
>>> RegulatedNodeElement('nodes').active
1.0
Source code in src/skcomplex/systems/mathematics/common/networks/_regulated_node.py
42 43 44 45 46 47 48 49 50 | |
VertexElement(label, *, age=0.0, degree=0.0, space=None)
Bases: Element
Node of a growing network, with its age in steps and its degree.
New nodes start with the age their growth gives, and the maps of the system age the node and read its degree from the edges at the start of every step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
The label of the node group. |
required |
age
|
Annotated[object, closed_open(0, oo)]
|
The number of steps since the node joined. |
0.0
|
degree
|
Annotated[object, closed_open(0, oo)]
|
The number of edges of the node. |
0.0
|
space
|
BaseSpace | None
|
The network whose nodes hold one member each, or |
None
|
Examples:
>>> from skcomplex.systems.mathematics.networks import VertexElement
>>> VertexElement('nodes').age
0.0
Source code in src/skcomplex/systems/mathematics/common/networks/_vertex.py
44 45 46 47 48 49 50 51 52 53 54 | |