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