find_nbr: A function that finds neighbours of a node

Description Usage Arguments

View source: R/find_nbr.R

Description

This function finds neighbours of a node in a graph, which is stored in a contigency matrix. The output of the function are a vector of node names.

Usage

1
find_nbr(graph, node)

Arguments

graph

A graph that is stored in an adjacency matrix.

node

A node that is expressed in text, e.g. "V1" or "X1".


kelvinyangli/wrsgraph documentation built on Sept. 6, 2019, 10 a.m.