View source: R/graph-utilities.R
initialize_graph | R Documentation |
Checks for required attributes and adds defaults if missing
initialize_graph(graph)
graph |
An object of class igraph |
An igraph with the vertex attributes leftside, latent, and nvals, and edge attributes rlconnect and edge.monotone
b <- igraph::graph_from_literal(X -+ Y)
b2 <- initialize_graph(b)
V(b2)$nvals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.