edge_exists: Check that edges exist in a graph

Description Usage Arguments Details Value

View source: R/edge_exists.R

Description

Edges are specified by directed source->target pairs arranged in a matrix.

Usage

1

Arguments

x

An adjacency matrix.

g

An igraph object.

edges

A matrix of source->target ordered pairs representing edges.

Details

Even if querying a single edge, the input must be represented as a matrix. In the case of one edge, the matrix would have two rows and one column.

Value

logical.


crcox/latticize documentation built on Dec. 19, 2021, 6:19 p.m.