Analyze an R object to identify the class of graph (if any)
classify_graph(graph)
Whe the object fits any of the accepted graph formats, a list of attributes including
Character scalar. Whether is a static or a dynamic graph
Character scalar. The class of the original object
Character vector. Labels of the vertices
Integer vector. Labels of the time periods
Integer scalar. Number of time periods
Integer scalar. Number of vertices in the graph
Otherwise returns with error.
Any class of accepted graph format (see netdiffuseR-graphs
).
George G. Vega Yon
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
.
as_diffnet
, netdiffuseR-graphs