Description Usage Arguments Value Examples
These are light-weight wrappers around 'tidygraph' functions to create random graphs. They return graphs with named nodes.
1 2 3 4 5 | quick_forestfire(n, name = c(), directed = FALSE)
quick_barabasi(n, name = c(), directed = FALSE)
quick_graph(n, name = c(), directed = FALSE)
|
n |
number of nodes |
name |
node names; default is |
directed |
boolean value for directed or undirected graph |
a tridygraph object with named nodes
1 2 3 4 5 6 7 8 9 | set.seed(0)
forest_gr <- quick_forestfire(20)
forest_gr
plot(forest_gr)
barabasi_gr <- quick_barabasi(20)
barabasi_gr
plot(barabasi_gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.