<< micmac Indirect Influences for Graphs pagerank >>

Indirect Influences for Graphs >> Indirect Influences for Graphs > pag

pag

Returns the adjacency matrix of the partition graph P of a graph G using the adjacency matrix of G graph.

Calling Sequence

pag(M,Vlist)
H = pag(M,Vlist)

Parameters

M:

Adjacency matrix of the initial graph G.

Vlist:

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.

Description

This function gives the adjacency matrix of the partition graph P of a graph G using the adjacency matrix of G graph

Examples

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)

See also

Authors

<< micmac Indirect Influences for Graphs pagerank >>