Creates a matrix from a graph object, with cells representing nodes.

MfG(g, nrows, ncols)

Arguments

g

Graph object to convert into a matrix.

nrows

Number of rows for the resulting matrix.

ncols

Number of columns for the resulting matrix.