R/graphs.R
path_graph.Rd
Path graph: 1 → 2 → ... → n
path_graph(n)
Number of vertices
g <- path_graph(4) nv(g) # 4 #> [1] 4 ne(g) # 3 #> [1] 3