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/graphweights documentation built on April 4, 2024, 7:19 p.m.