-
Bug fixed on
edgelist_to_adjmat: Counting number of vertices is now done right afterrecode. (Reported by Tom) -
Fixed bug in
diffnet.attrs(..., as.df=TRUE). ids were wrongly retrieved. -
Fixed bugs for
rgraph_ba_cpp: Degree of new vertices was not changing apropiately. This only was an issue whenm>1. -
Fixed bugs for the
as_diffnetmethod for arrays. -
Fixed bugs in
rewire_graph. Indexing of the jth component (when rewiring) was not been made correctly (now it does). Also, when rewiring, the new endpoints were truncated to n-1 (now fixed). -
Fixed bugs for
as_diffnet: When a dynamic graph was passed with slices names different from the time periods, the slices names were kept. Now these are replaced bymeta$pers.
-
Support for
int64_tinRcppArmadillonow allows for creating/reading adjacency matrices with more than 4 billion elements (big graphs). -
In
edgelist_to_adjmatuse.incompletehas been replaced bykeep.isolatedwhich makes more sense for naming. Incomplete cases ontimesorweightsare still ignored (as these cannot be processed by the c++ 'engine'). (Reported by Tom) -
In
edgelist_to_adjmattimeshas been replaced byt0andt1. So now the user can import graphs with spells. -
Added new elements to the
diffnet_struct_testclass:p.value,t0,mean_t, andR. All these were available before either to be computed or retrieved from thebootlist at the class. -
New argument for
threshold. Now, by default, threshold levels are not computed for adopters in the first time period as this can be a biased estimate. If the user wants to compute such, he/she can setinclude_censored=TRUE. -
Attributes in diffnet objects are now stored as data frames (instead of matrices). This affects the function
diffnet.attrs, andegonet_attrsas these use attributes directly. (Requested by Tom) -
New features for the
rewire_graphfunction. In particular,pcan now be a vector of lengthT, so each slice can have different rewiring prob., and the new optioncopy.firstwhich allows to recycle the first rewired slice (see details). -
New features for the
exposurefunction. Whengraphis of class diffnet, the function acceptsattrsequal to the name of some the graph's attributes. Also,alt.graphcan be specified asse, which will be replaced by the inverse of the structural equivalence. Whenvalued=FALSEthe function will switch it toTRUEand warn the user. -
New argument for
struct_equivandexposure,groupvar. This new option provides a convenient way of calculating structural equivalence and exposure clusterized by group. Specially useful when there are different communities in a graph. See examples in the manual. -
as_diffnetnow has an internal function,check_as_diffnet_attrs, to check input attributes dimensions and coerce them into proper class/structure. Valid attributes are now documented in the function's manual. -
New arguments for
edges_coords:devandranallow including device + margins aspec ratio and plotting area y/x limits for improved aspect ratio computation. -
New internal function
edges_arrow: Computes the coordinates of a 4 points polygon allowing to draw pretty arrows considering aspec ratio of device, margins and y/x. -
Geodesic distances are now computed using
igraph::distancesinstead ofsna::geodistas it is more flexible and faster. -
New arguments for
plot_threshold:vertex.sides,vertex.lab.cex,vertex.lab.adj,vertex.lab.col,vertex.rot,jitter.factor, andjitter.amountto give more control. -
New internal function
vertex_coords: Creates polygons of any given number of sides considering aspec ratio of both x/y and device. -
New features for
rdiffnet.seed.graphcan be either a function that generates a random graph, a character string (as before) indicating the class of graph to generate, or any other class of graph (either static or dynamic) as specified innetdiffuseR-graphs.seed.nodescan now be a vector with indices pointing to the initial adopters. -
The rewiring algorithm for
rgraph_wshas been replaced with arewire_wswhich has been implemented as it was presented in Watts and Strogatz (1998).
-
New function:
survey_to_diffnet. This function allows importing network nomination data (in survey fashion) of both types, cross-section and panel formats (static network only varying adoption, or dynamic network varying attributes and network structure simultaneously). -
New function:
edgelist_to_diffnet. Similar tosurvey_to_diffnet, this function reads diffusion networks from an adjacency matrix and a vertex attributes data frame. Both the attributes and the edgelist can be static or dynamic. -
New method:
as.array.diffnet. -
New functions:
read_pajekandread_ucinet. Still on development. -
New functions:
nverticesandnedgesreturn the number of vertices and edges that a graph has. This can be applied to any class of graph accepted by the package. -
New indexing methods via
[[.diffnet,[[<-.diffnet, for network attributes and[.diffnetand[<-.diffnetfor adjacency matrix. The functiondiffnet.attrs<-will be deprecated for the next CRAN release. The functiondiffnet.subset.slicesis now not exported (internal use), so the user needs to use the[.diffnetmethod instead. -
New concatenating method
c.diffnetfor diffnet objects. This method allows 'adding up' diffnet objects. -
New print method for
diffnet_se, objects returned bystruct_equiv. -
New function
diffnet_to_igraph. -
New rewiring algorithm,
rewire_swapimplements the edge-switch algorithm in an efficient way. This preserves degree sequences.
- First CRAN version.