Create a ring graph
A ring is a one-dimensional lattice and this function is a special case
make_ring(n, directed = FALSE, mutual = FALSE, circular = TRUE)
- Number of vertices.
- Whether the graph is directed.
- Whether directed edges are mutual. It is ignored in undirected graphs.
- Whether to create a circular ring. A non-circular
ring is essentially a
line: a tree where every non-leaf vertex has one child.
- Passed to
- An igraph graph.
Other determimistic constructors:
str(make_ring(10)) str(make_ring(10, directed = TRUE, mutual = TRUE))