Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

isAdjacent-methods

Determine if nodes share an edge in a graph


Description

For a given subclass of graph-class, returns TRUE if the graph contains an edge from node specified by from to the node specified by to.

The appropriate logical vector will be returned as long as from and to have the same length and contain nodes in the graph object specified by object.

Usage

isAdjacent(object, from, to, ...)

Arguments

object

An instance of a subclass of graph-class.

from

A character vector of nodes in the graph.

to

A character vector of nodes in the graph

...

May be used by methods called on subclasses of graph


graph

graph: A package to handle graph data structures

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Elizabeth Whalen, W. Huber, S. Falcon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.