netdiffuseR-graphs {netdiffuseR} | R Documentation |
Network data formats
Description
List of accepted graph formats
Details
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\times n
and can be eithermatrix
(dense matrices) ordgCMatrix
(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, anarray
of sizen\times n \times T
, or a list of sizeT
with sparse matrices (classdgCMatrix
) of sizen\times n
. Just like the static graph case, while most of the functions accept both graph types, the default output isdgCMatrix
.
Value
No return value (this manual entry only provides information).
diffnet objects
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 not
Objects' names
When 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.
Author(s)
George G. Vega Yon