sort_loop_index: Sort loop indices

Description Usage Arguments See Also Examples

View source: R/further_functions.R

Description

Changes the loop representation such that every loop starts with the smallest node index. Returns a loop list of the same dimensions, only column loop will be altered.

Usage

1
sort_loop_index(loop_list)

Arguments

loop_list

Dataframe with a column loop that contains the lists of loops, e.g. obtained from find_loops().

See Also

compare_loop_list

Examples

1
2
3
4
5
6
#sample Jacobian matrix of a system with 4 variables
jac_matrix <- rbind(c(-1,0,0,-1),c(1,-1,0,1),c(0,1,-1,0),c(0,0,1,-1))
#find the feedback loops of the system
loop_list <- find_loops(jac_matrix,10)
#sort the loop indices to start with the smallest
sorted_loop_list <- sort_loop_index(loop_list)

LoopDetectR documentation built on July 20, 2020, 5:07 p.m.