circular graph with positive and negative edges.

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

Arguments

n

number of nodes

r

radius

pos

distance fraction between positive edges

neg

distance fraction between negative edges

Value

igraph graph

Author

David Schoch

Examples

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