common_nbrs: A function that finds the common neighbours between two nodes

Description Usage Arguments

View source: R/common_nbrs.R

Description

This function finds the common neighbours between two nodes from a graph. It returns an empty vector of length 0 if there is no common neighbours.

Usage

1
common_nbrs(graph, x, y)

Arguments

graph

A graph that is stored in an adjacency matrix.

x

A node in graph.

y

A node in graph that is different from x.


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