View source: R/centrality_indices.R
degree_signed | R Documentation |
several options to calculate the signed degree of vertices
degree_signed(
g,
mode = c("all", "in", "out"),
type = c("pos", "neg", "ratio", "net")
)
g |
igraph object with a sign edge attribute. |
mode |
character string, “out” for out-degree, “in” for in-degree or “all” for undirected networks. |
type |
character string, “pos” or “neg” for counting positive or negative neighbors only, "ratio" for pos/(pos+neg), or "net" for pos-neg. |
centrality scores as numeric vector.
David Schoch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.