grapharray.classes.BaseGraphArray¶
- class grapharray.classes.BaseGraphArray(base_graph: grapharray.classes.BaseGraph)[source]¶
Base object for creating vectors and matrices on networks.
This set up attributes used in both node variables and edge variables. All attributes are aliases of that of BaseGraph and thus are read-only.
- __init__(base_graph: grapharray.classes.BaseGraph)[source]¶
Store BaseGraph instance on that the variable is defined.
Methods
__init__
(base_graph)Store BaseGraph instance on that the variable is defined.
Attributes
Transpose the array
Core array
BaseGraph object on that this array itself is defined
Correspondence between edges and array indices
Tuple of all edges
Whether the array is transposed or not.
Correspondence between nodes and array indices
Tuple of all nodes
The number of edges in the base graph
The number of nodes in the base graph