label.propagation.community | R Documentation |
label.propagation.community()
was renamed to cluster_label_prop()
to create a more
consistent API.
label.propagation.community(
graph,
weights = NULL,
...,
mode = c("out", "in", "all"),
initial = NULL,
fixed = NULL
)
graph |
The input graph. Note that the algorithm wsa originally
defined for undirected graphs. You are advised to set ‘mode’ to
|
weights |
The weights of the edges. It must be a positive numeric vector,
|
... |
These dots are for future extensions and must be empty. |
mode |
Logical, whether to consider edge directions for the label propagation, and if so, in which direction the labels should propagate. Ignored for undirected graphs. "all" means to ignore edge directions (even in directed graphs). "out" means to propagate labels along the natural direction of the edges. "in" means to propagate labels backwards (i.e. from head to tail). |
initial |
The initial state. If |
fixed |
Logical vector denoting which labels are fixed. Of course this makes sense only if you provided an initial state, otherwise this element will be ignored. Also note that vertices without labels cannot be fixed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.