subClasses("graph") # -> the direct ones
subClasses("graph", directOnly = FALSE) # the same: has only direct subclasses
if(require("Matrix")) {
print( subClasses("sparseMatrix") )
print( subClasses("sparseMatrix", directOnly = FALSE) )# much more
}
Run the code above in your browser using DataLab