powered by
This function will return the number of nodes for a given of graph.
getNumNodes(data, type)
A data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge).
The type of graph being used (adjmatrix or adjmatrixlt).
The number of individual nodes in the given graph.
data(braingraphs) brainnodes <- getNumNodes(braingraphs, "adjMatrix") brainnodes
Run the code above in your browser using DataLab