Network data formats
List of accepted graph formats
No return value (this manual entry only provides information).
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 and can be either matrix
(dense matrices) or dgCMatrix
(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. dgCMatrix
.
With respect to dynamic graphs , these are represented by either a diffnet
object, an array
of size , or a list of size
with sparse matrices (class dgCMatrix
) of size . Just like the static graph case, while most of the functions accept both graph types, the default output is dgCMatrix
.
In the case of diffnet
-class objects, the following arguments can be omitted when calling fuictions suitable for graph objects:
toa
: Time of Adoption vectoradopt
: Adoption Matrixcumadopt
: Cumulative Adoption Matrixundirected
: Whether the graph is directed or notWhen possible, netdiffuseR
will try to reuse graphs dimensional names, this is, rownames
, colnames
, dimnames
and 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
Useful links