hasEdge.adjListGraph: A Graph Function

Description Usage Arguments Value

Description

This function allows you to check for if an edge exists between 2 nodes in the graph.

Usage

1
2
## S3 method for class 'adjListGraph'
hasEdge(graph, node1, node2)

Arguments

node1

The first node

node2

The second node

Value

a list containing the graph object and the a boolean indicating if the graph contained the edge


TheBell/Graph documentation built on May 5, 2019, 4:48 p.m.