circular graph with positive and negative edges.

## Usage

graph_circular_signed(n, r = 1, pos = 0.1, neg = 0.1)

## Arguments

n

number of nodes

r

pos

distance fraction between positive edges

neg

distance fraction between negative edges

igraph graph

David Schoch

## Examples

library(igraph)
graph_circular_signed(n = 50)
#> IGRAPH 5cc1ec5 U--- 50 372 --
#> + attr: x (v/n), y (v/n), sign (e/n)
#> + edges from 5cc1ec5:
#>   [1] 1-- 6 1-- 7 1--14 1--21 1--23 1--26 1--28 1--30 1--31 1--34 1--44 2-- 3
#>  [13] 2--10 2--15 2--16 2--17 2--19 2--22 2--25 2--33 2--36 2--37 2--41 2--43
#>  [25] 2--47 2--48 3-- 4 3-- 8 3--10 3--11 3--12 3--15 3--17 3--24 3--33 3--35
#>  [37] 3--36 3--37 3--41 3--43 3--46 3--48 4--12 4--13 4--15 4--16 4--17 4--22
#>  [49] 4--25 4--27 4--32 4--33 4--36 4--41 4--43 4--45 4--48 5-- 8 5-- 9 5--11
#>  [61] 5--15 5--18 5--19 5--20 5--24 5--28 5--30 5--35 5--39 5--40 5--42 5--46
#>  [73] 5--47 5--49 6-- 7 6-- 9 6--23 6--28 6--29 6--30 6--34 6--38 6--40 6--44
#>  [85] 7--14 7--21 7--23 7--26 7--30 7--31 7--34 7--44 8-- 9 8--11 8--15 8--18
#> + ... omitted several edges