adjacency.neighbor_graph: Adjacency Matrix for neighbor_graph Objects

View source: R/neighbor_graph.R

adjacency.neighbor_graphR Documentation

Adjacency Matrix for neighbor_graph Objects

Description

Extract the adjacency matrix from a neighbor_graph object.

Usage

## S3 method for class 'neighbor_graph'
adjacency(x, attr = "weight")

Arguments

x

A neighbor_graph object.

attr

A character string specifying the attribute to use for the adjacency matrix.

Value

A Matrix object representing the adjacency matrix.


bbuchsbaum/graphweights documentation built on April 4, 2024, 7:19 p.m.