View source: R/graph-functions.R
| f.adj_matrix | R Documentation |
Construct the adjacency matrix implied by the directed edges stored in the graph object.
f.adj_matrix(graph)
graph |
A graph object generated by the |
An adjacency matrix of the graph.
graph <- make.graph(vertices=c('A','M','L','Y','X'),
bi_edges=list(c('A','Y')),
di_edges=list(c('X','A'), c('X','M'), c('X','L'),
c('X','Y'), c('M','Y'), c('A','M'), c('A','L'), c('M','L'), c('L','Y')))
f.adj_matrix(graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.