For details on the methods see the documentation of the corresponding classes.
neighborhood(object, ...)neighborhood(object) <- value
Arguments to be passed to methods
A neighborhood matrix to replace the existing one
A matrix (optionally sparse), representing the neighborhood links betweem the nodes