grapharray.classes.IncidenceMatrix¶
- class grapharray.classes.IncidenceMatrix(base_graph: grapharray.classes.BaseGraph)[source]¶
Node-edge incidence matrix
- __init__(base_graph: grapharray.classes.BaseGraph)[source]¶
Create incidence matrix.
Methods
__init__(base_graph)Create incidence matrix.
Attributes
TTranspose the array
arrayCore array
base_graphBaseGraph object on that this array itself is defined
edge_to_indexCorrespondence between edges and array indices
edgesTuple of all edges
is_transposedWhether the array is transposed or not.
node_to_indexCorrespondence between nodes and array indices
nodesTuple of all nodes
number_of_edgesThe number of edges in the base graph
number_of_nodesThe number of nodes in the base graph