Create a lingraph of a loongraph
# S3 method for loongraph linegraph(x, separator = ":", ...)
x | loongraph object |
---|---|
separator | one character - node names in x get concatenated with this character |
... | additional arguments are not used for this methiod |
graph object of class loongraph
linegraph.loongraph needs the code part for directed graphs (i.e. isDirected=TRUE)
#> $nodes #> [1] "a:b" "b:c" "c:d" #> #> $from #> [1] "a:b" "b:c" #> #> $to #> [1] "b:c" "c:d" #> #> $isDirected #> [1] FALSE #> #> attr(,"class") #> [1] "loongraph" #> attr(,"separator") #> [1] ":"