neighbors.neighbor_graph: Neighbors for neighbor_graph Objects

View source: R/neighbor_graph.R

neighbors.neighbor_graphR Documentation

Neighbors for neighbor_graph Objects

Description

Retrieve the neighbors of a specific node or all nodes in a neighbor_graph object.

Usage

## S3 method for class 'neighbor_graph'
neighbors(x, i)

Arguments

x

A neighbor_graph object.

i

An integer specifying the index of the node for which neighbors should be retrieved.

Value

A list of neighbors.


bbuchsbaum/neighborweights documentation built on Dec. 11, 2024, 1:56 a.m.