powered by
Returns the adjacency matrix based on a list of edges, supplied in a gRapHD object or as a matrix.
gRapHD
adjMat(model=NULL,edges=NULL,p=NULL)
gRapHD object.
matrix with 2 columns, each row representing one edge, and each column one of the vertices in the edge. Column 1 contains the vertex with lower index.
number of vertices.
p by p.
p
The dimension of the matrix is given by model$p or by the maximum value between max(edges) and p.
model$p
max(edges)
# NOT RUN { data(dsCont) m1 <- minForest(dsCont,homog=TRUE,forbEdges=NULL,stat="LR") edges <- SubGraph(edges=m1@edges,v=1:10)@edges adjMat(edges=edges,p=10) # }
Run the code above in your browser using DataLab