classify_graph function

Analyze an R object to identify the class of graph (if any)