Returns the adjacency matrix of the partition graph P of a graph G using its adjacency matrix.
part_adj_mat(M,Vlist) H = part_adj_mat(M,Vlist)
Adjacency matrix of the initial graph G.
A list of the desired partition blocks, this is a list of vectors where each one contains the number of the nodes for each block.
Adjacency matrix of the partition of the graph G.
This function gives the adjacency matrix of the partition graph P of a graph G using its adjacency matrix.
M=[0 0 3 1;0 0 2 0;1 1 0 1;3 0 0 0] Vlist=list([1,3],[2,4]) H=part_adj_mat(M,Vlist) | ![]() | ![]() |
spilu_permVecToMat