# Signed Network

### Description

Construct the signed network of a system of contrasting relations

### Usage

1 |

### Arguments

`P` |
array with the positive ties and possible with negative ties (see Details) |

`N` |
(optional) array with the negative ties |

`labels` |
(optional) labels for the signed matrix |

### Details

This function coerce a array(s) to become a '`Signed`

' object. Positive ties are always in the first argument, and in case that this array has three dimensions, then the second dimension is considered as the negative ties, provided that `N`

is NULL. If ambivalent ties are present in the structure then the signed matrix represent positive, negative, ambivalent, and null ties as `p`

, `n`

, `a`

, and `o`

respectively; otherwise the values are `1`

, `-1`

, and `0`

.

### Value

An object of '`Signed`

' class with items:

`val` |
the valences in the signed matrix |

`s` |
the signed matrix |

### Note

A warning message is shown when the `N`

argument has more than two dimensions.

### Author(s)

Antonio Rivero Ostoic

### References

Doreian, P., V. Batagelj and A. Ferligoj *Generalized Blockmodeling*. Cambridge University Press. 2004.

### See Also

`semiring`

, `as.signed`

### Examples

1 2 3 4 5 |