> My question is: how to convert the list 'sbg.triangle[[1]] = a, b, c'
> into 'a,b, b,c, c,a'?
Something like this would work:

> edges_of_triangle <- function (x) { c(x[1], x[2], x[2], x[3], x[3], x[1]) }
> edges_of_triangle(c("A", "B", "C"))
[1] "A" "B" "B" "C" "C" "A"

T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to