Skip to content

Nice to have: Plot self-loops so that they face away from other edges #556

@clpippel

Description

@clpippel

What is the feature or improvement you would like to see?
In layout_in_circle: always plot self edges outside the circle.

Use cases for the feature
Example.

# Berger/circle schedule for round robin tournaments
n <- 32
n <- max(n - !(n %%2L), 1)
r <- c(rbind((seq(from = 0, to = -(n+1)/2+1) %% n) , seq(from=0, to=(n-1)/2)))  # diagonal in Zn
g <- make_graph(r+1)
  
for (i in seq_len(n-1)) {
   r <- ((r+(n-1)/2) %% n)
   g <- add_edges(g, r+1)
 }
 plot(g, layout=layout_in_circle)

For n = 8, the self-edges within the circle are visible.
For larger n, the edges become unrecognizable.

layout_in_circle_self_edges

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions