Description Usage Arguments Value Author(s) References Examples
View source: R/adjacencyMatrix.R
This method calculates the adjacency Matrix of a given graph.
1 |
g |
a graph as a graphNEL object. |
This method returns the adjacency Matrix of a given graph.
Laurin Mueller
F. Harary, Graph Theory, Addison-Wesley series in mathematics, Perseus Books, 1994.
1 2 3 4 5 | library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
adjacencyMatrix(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.