GDS/util_DAGs/containsCycle.R

containsCycle <- function(Adj)
# Copyright (c) 2010 - 2012  Jonas Peters  [peters@stat.math.ethz.ch]
# All rights reserved.  See the file COPYING for license terms. 
{
    ifelse(sum(abs(eigen(Adj)$values) > 10^(-10)) > 0, TRUE, FALSE)    
}
WY-Chen/EqVarDAG documentation built on May 10, 2022, 7:08 a.m.