g <- loongraph(
nodes = c("A", "B", "C", "D"),
from = c("A", "A", "B", "B", "C"),
to = c("B", "C", "C", "D", "D")
)
if (FALSE) {
# create a loon graph plot
p <- l_graph(g)
}
lg <- linegraph(g)
Run the code above in your browser using DataLab