pyphi.models.partitions.EdgeCut#
- class pyphi.models.partitions.EdgeCut(node_indices, cut_matrix, node_labels=None)[source]#
Bases:
Displayable,_PartitionBaseAn edge cut specified by an explicit binary severance matrix.
Stores
(node_indices, _cut_matrix)where_cut_matrix[i, j] == 1indicates that the connection from nodenode_indices[i]tonode_indices[j]is severed. The full n by n cut matrix is produced by embedding_cut_matrixat the rows/cols corresponding tonode_indices.- Parameters:
cut_matrix (NDArray[np.int_])
node_labels (NodeLabels | None)
- normalization_factor()[source]#
Normalization factor: 1 / number of severed connections.
- Return type: