For details on the methods see the documentation of the corresponding classes.

nnodes(object, ...)

Arguments

object

One of sp_network_nodes-class(), sp_network_pair-class()

...

Arguments to be passed to methods

Value

A numeric, corresponding to the number of nodes

See also