sort_loop_index {LoopDetectR} | R Documentation |
Sort loop indices
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
sort_loop_index(loop_list)
Arguments
loop_list |
Dataframe with a column |
See Also
Examples
#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)
[Package LoopDetectR version 0.1.2 Index]