Learn R Programming

orbweaver (version 0.10.2)

has_parents: Checks if a node in a graph has parents

Description

This function validates if any edge points to the given node.

Usage

has_parents(graph, nodes)

Value

A logical vector with the same length as nodes

Arguments

graph

A graph object

nodes

A character vector of nodes to determine