Learn R Programming

simplifyNet (version 0.0.1)

DFS: Depth First search

Description

Iterative depth first search.

Usage

DFS(Adj, v, discovered)

Value

Logical of length n where TRUE denotes connected to node v.

Arguments

Adj

Adjacency matrix.

v

Node to perform DFS from.

discovered

A list of discovered nodes from v. If initializing the search, should be all FALSE.

Author

Andrew Kramer

Alexander Mercier

Details

Intended as internal function.