sinks: Identify sinks in a directed graph

Description Usage Arguments Details Author(s) Examples

View source: R/sinks.R

Description

From a directed graph, this function returns all sink nodes, or nodes which only act as tail nodes and not as head nodes.

Usage

1
sinks(graph)

Arguments

graph

a directed graph (igraph).

Details

sinks returns a numerical vector of sink nodes.

Author(s)

Christopher Nobles, Ph.D.

Examples

1
2
g <- make_graph(edges = c(1,2, 2,3, 1,3), directed = TRUE)
sinks(g)

cnobles/gintools documentation built on Aug. 22, 2019, 10:36 a.m.