List of accepted graph formats
The netdiffuseR package can handle different types of graph objects. Two general classes are defined across the package's functions: static graphs, and dynamic graphs.
In the case of static graphs, these are represented as adjacency
matrices of size n * n and can be either
(dense matrices) or
(sparse matrix from the Matrix package). While
most of the package functions are defined for both classes, the default output
graph is sparse, i.e.
With respect to dynamic graphs, these are represented by either
diffnet object, an
array of size
n * n * T, or a list of size T
with sparse matrices (class
dgCMatrix) of size n * n.
Just like the static graph case, while most of the functions accept both
graph types, the default output is
In the case of
diffnet-class objects, the following arguments can be omitted
when calling fuictions suitable for graph objects:
toa: Time of Adoption vector
adopt: Adoption Matrix
cumadopt: Cumulative Adoption Matrix
undirected: Whether the graph is directed or not
When possible, netdiffuseR will try to reuse graphs dimensional names,
names (in the case of dynamic graphs as lists). Otherwise,
when no names are provided, these will be created from scratch.
George G. Vega Yon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.