nodes | R Documentation |
Extract node or edge attributes from a tidygraph tbl_graph
object.
nodes(graph)
edges(graph)
graph |
object of class tbl_graph |
a_graph <- tidygraph::tbl_graph(
nodes = data.frame(
name = c('a','b','c')
),
edges = data.frame(
from = c(1,2),
to = c(2,3),
type = c(1,2)
))
## Extract graph nodes
nodes(a_graph)
## Extract graph edges
edges(a_graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.