Learn R Programming

signnet (version 0.6.0)

degree_signed: Signed Degree

Description

several options to calculate the signed degree of vertices

Usage

degree_signed(
  g,
  mode = c("all", "in", "out"),
  type = c("pos", "neg", "ratio", "net")
)

Arguments

g

igraph object. Must have a "sign" edge attribute.

mode

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.

type

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.

Value

centrality scores as numeric vector.