is.connected: Connectivity of Graph

View source: R/ModelFit.R

is.connectedR Documentation

Connectivity of Graph

Description

Tests the connectivity of a graph by performing a Depth First Search (DFS) from a random node.

Usage

is.connected(Adj)

Arguments

Adj

Adjacency matrix.

Details

Intended as internal function.

Value

Return TRUE if network is connected and FALSE if not connected.If the network is directed, then this function checks if the network is strongly connected.

Author(s)

Andrew Kramer

Alexander Mercier


simplifyNet documentation built on Nov. 15, 2022, 5:05 p.m.