xIG2TB | R Documentation |
xIG2TB
is supposed to convert an igraph into a tibble for nodes
or edges.
xIG2TB(ig, what = c("edges", "nodes"))
ig |
an "igraph" object |
what |
what to extract. It can be "edges" for edges and "nodes" for nodes |
a tibble object
none
xIG2TB
set.seed(825) ig <- sample_pa(20) V(ig)$name <- seq(1,vcount(ig)) ig %>% xIG2TB('edges') ig %>% xIG2TB('nodes')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.