several options to calculate the signed degree of vertices
degree_signed(
g,
mode = c("all", "in", "out"),
type = c("pos", "neg", "ratio", "net")
)
igraph object. Must have a "sign" edge attribute.
character string, <U+201C>out<U+201D> for out-degree, <U+201C>in<U+201D> for in-degree or <U+201C>all<U+201D> for undirected networks.
character string, <U+201C>pos<U+201D> or <U+201C>neg<U+201D> for counting positive or negative neighbors only, "ratio" for pos/(pos+neg), or "net" for pos-neg.
centrality scores as numeric vector.