Skip to contents

Path graph: 1 → 2 → ... → n

Usage

path_graph(n)

Arguments

n

Number of vertices

Examples

g <- path_graph(4)
nv(g) # 4
#> [1] 4
ne(g) # 3
#> [1] 3