This function analyzes an R object and tries to classify it among the
accepted classes in netdiffuseR. If the object fails to fall in one of
the types of graphs the function returns with an error indicating what (and
when possible, where) the problem lies.The function was designed to be used with as_diffnet
.