establish s3 method for lengths

A vector of walk lengths associated with this walk

lengths(x, use.names = TRUE)

lengths.gWalk(x, use.names = FALSE)

# S4 method for gWalk
lengths(x)

Arguments

x

a gWalk object

gWalk

a gWalk object

Value

the number of nodes per walk in the gWalk

the number of nodes per walk in the gWalk

the number of nodes in each gWalk