calculate_cycle_length: Calculate the shortest cycle length

Description Usage Arguments Details

View source: R/calculate_cycle_length.R

Description

This function calculate the length of a shortest cycle between two nodes. If these nodes don't form a cycle, the function returns length 0.

Usage

1
calculate_cycle_length(graph, x, y, connected = FALSE)

Arguments

graph

A graph that is stored in an adjacency matrix.

x

A node.

y

A node.

Details

The function has dependency on igraph.


kelvinyangli/wrsgraph documentation built on Sept. 6, 2019, 10 a.m.