R/complexite.R

complexite <-
function(noeud, cplx=1)
{
    if (class(noeud) == "sp.spodt"  |  class(noeud) == "vql.spodt"  |  class(noeud) == "vqt.spodt")
    {
        cplx <- max(complexite(noeud@fg, cplx), complexite(noeud@fd, cplx)) + 1
    }
    return(cplx)
}

Try the SPODT package in your browser

Any scripts or data that you put into this service are public.

SPODT documentation built on May 2, 2019, 9:43 a.m.