graphvec 0.1.0
Initial CRAN submission.
New features
- Added
node_vec(), a graph vector of nodes with edges stored as attributes. Slicing induces a subgraph: edges that lose an endpoint are dropped, and remaining endpoints are remapped. - Added
edge_vec(), a graph vector of edges with node data stored as attributes. Slicing selects edges directly, leaving nodes unaffected. - Added
agg_vec(), an aggregation vector: anode_vecconsisting of a parent value (the aggregated value) and its disaggregated children. - Added
agg_df(), a table ofagg_vec()columns, one row per level of aggregation, which can be reoriented into a graph. - Added
nodes()/edges()generics to losslessly reorient a graph vector between node- and edge-indexed forms. - Added
is_aggregated()to test whether an element is an aggregation of smaller data. - Added
as.igraph()methods fornode_vec,edge_vec,agg_vec, andagg_df, converting them toigraph::igraph()objects.