maxNrLoops: Maximum number of loops

View source: R/evaluate_characteristics.R

maxNrLoopsR Documentation

Maximum number of loops

Description

This function calculates the maximum number of loops, assuming full connectance.

Usage

maxNrLoops(n, k = NULL)

Arguments

n

(required) Integer. Number of network compartments.

k

(optional) Integer. Length of loop. Default NULL searches of loops of all length (k=2 to k = n).

Details

A fully connected network is assumed. The total number of loops of length k can be found as n! / (n - k)!. If k is not given the total number of possible loops (i.e. of length k = 2 to k = n) is found.

Value

Returns the maximum number of possible loops.


dswdejonge/fwstability documentation built on Dec. 7, 2022, 7:24 p.m.