| representations | R Documentation | 
This is a collection of functions that convert a graph stored as an
igraph object into a desired matrix representation
among adjacency matrix, graph laplacian, modularity matrix or graphon (edge
probability matrix).
repr_adjacency(network, validate = TRUE)
repr_laplacian(network, validate = TRUE)
repr_modularity(network, validate = TRUE)
repr_graphon(network, validate = TRUE)
| network | An  | 
| validate | A boolean specifying whether the function should check the
class of its input (default:  | 
A numeric square matrix giving the desired network representation recorded in the object's class.
g <- igraph::sample_smallworld(1, 25, 3, 0.05)
repr_adjacency(g)
repr_laplacian(g)
repr_modularity(g)
repr_graphon(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.