Check if the network is signed
is_signed(x)logical, TRUE or FALSE
A signed igraph or network object has a "sign" attribute.
For a matrix or data.frame, a signed network is recognized by the presence of positive and negative ties, where values are integers. A signed graph that only has positive integer values will not be recognized as such (but is pathologial anyway).
Specifially, for a data.frame, this check is conducted on its
third column, which is the most logical column to hold the signs.
functions from the excellent migraph package.
These methods are licensed through the
MIT license
in combination with copyright for James Hollway.
data(florentine, package = "snafun")
is_signed(florentine$flobusiness) # FALSE
#> [1] FALSE