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