Description Usage Arguments Details Value Author(s) See Also

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

1 | ```
classify_graph(graph)
``` |

`graph` |
Any class of accepted graph format (see |

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`

.

Whe the object fits any of the accepted graph formats, a list of attributes including

`type` |
Character scalar. Whether is a static or a dynamic graph |

`class` |
Character scalar. The class of the original object |

`ids` |
Character vector. Labels of the vertices |

`pers` |
Integer vector. Labels of the time periods |

`nper` |
Integer scalar. Number of time periods |

`n` |
Integer scalar. Number of vertices in the graph |

Otherwise returns with error.

George G. Vega Yon

`as_diffnet`

, `netdiffuseR-graphs`

netdiffuseR documentation built on May 19, 2017, 6:39 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.