neighbor: Neighbor For specific node in one graph, list all the nodes...

Description Usage Arguments Value Examples

View source: R/neighbor.R

Description

Neighbor For specific node in one graph, list all the nodes whcih are connected to the node.

Usage

1
neighbor(node, graph)

Arguments

node

The specific node in the graph, representing as a numeric.

graph

The graph, representing as a vector. Each entry in the vector is writen such as "1-2", "6-2".

Value

A numeric vector listing all the nodes which are connected to the nodex x in graph y.

Examples

1
2
graph = c6(1:6)[1, ]
neighbor(2, graph)

placeboo/subgraph documentation built on May 29, 2019, 7:37 a.m.