graph_cyclic: Is this graph cyclic

Description Usage Arguments Examples

View source: R/graph_cyclic.R

Description

Does the graph contain a loop. True if it does.

Usage

1
graph_cyclic(graph)

Arguments

graph

An adjacency matrix

Examples

1
2
graph_cyclic(matrix(c(0,1,1,0,0,0,0,0,0),3,3, byrow=T))
graph_cyclic(matrix(c(0,1,0,1,0,0,0,0,0),3,3, byrow=T))

neilbramley/acl_source documentation built on May 29, 2019, 6:53 p.m.