findloops: Detect feedback loops in a network

View source: R/subnetworks.R

findloopsR Documentation

Detect feedback loops in a network

Description

Detects feedback loops in a network.

Usage

findloops(mat, maxnodes, minnodes = 2)

Arguments

mat

A matrix of edge weights

maxnodes, minnodes

Maximum and minimum number of nodes permitted to be involved in the loop for it to be included in the output.

Details

Note: this has not yet been tested and may not behave as intended.

Value

A list with:

  • A list of character vectors, each being a loopderived from the network

  • A data.frame with one loop per row, describing

    • a character description of the involved nodes and the sign of the edges between them

    • The product of all edge weights, indicating whether it is a positive or negative feedback loop

    • The number of nodes involved

  • A list of matrices, each of the same size as mat and retaining only the edges involved in the loop

Author(s)

Sercan Kahveci


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.