Returns the adjacency matrix of the partition graph P of a graph G using the adjacency matrix of G graph.
pag(M,Vlist) H = pag(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.
This function gives the adjacency matrix of the partition graph P of a graph G using the adjacency matrix of G graph
M=[0 0 3 1;0 0 2 0;1 1 0 1;3 0 0 0] Vlist=list([1,3],[2,4]) H=pag(M,Vlist) | ![]() | ![]() |