check_specs.Rd
This method allows different adjacency matrix classes to be checked.
check_specs(object, ...) # S3 method for matrix check_specs(object, ...) # S3 method for dgTMatrix check_specs(object, ...) # S3 method for dgCMatrix check_specs(object, ...) # S3 method for sparseMatrix check_specs(object, ...) # S3 method for default check_specs(object, ...)
object | matrix to be analyzed. Different classes are allowed. |
---|---|
... | additional parameters to and from internal functions, currently not used. |
named boolean vector of length 2 whose first element is TRUE for directed `objects` and whose second element is TRUE for `object` with selfloops.
el <- data.frame(from= c('a','b','b','c','d','d'), to = c('b','c','d','a','b','a'), attr= c( 12, 6, 12 , 6 , 6 , 6 )) adj <- el2adj(el) check_specs(adj)#> directed selfloops #> TRUE FALSE