cycle_edges <- edges.cycle(6)
theta <- seq(0, 2 * pi, length.out = 7)[-7]
coords <- cbind(cos(theta), sin(theta))
state <- edge.repulsive.state(
coords, cycle_edges, rep(1, nrow(cycle_edges)),
lambda = 0.1, engine = "R"
)
Run the code above in your browser using DataLab