Description Usage Arguments Value Examples
View source: R/initialize_successor.R
The successor counts must be initialized to some value. All things equal, the value '0' tends to be pretty good.
1 | initialize_successor(input_tidygraph, initialize_with = 0)
|
input_tidygraph |
A 'tbl_graph' representation from 'tidygraph'. This function will not work with other kinds of network representations, e.g. from 'igraph'. Make sure that your input graph is either directed or undirected, as you'd like it. |
initialize_with |
A scalar. Defaults to '0'. |
A square NxN matrix, where N=number of nodes.
1 2 3 4 | `%>%` <- magrittr::`%>%`
successr::karate %>%
tidygraph::as_tbl_graph(directed = F) %>%
initialize_successor()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.