Package: graphvec 0.1.0

graphvec: Vectorised Graph Data Structures

Extends vectors to include graph relationships between their elements, and offers tools to compute useful summaries of the graph structure for use in summarising, filtering, and otherwise manipulating the graph. Node identity is positional rather than value-based, so isolated nodes and repeated values are represented without special handling. Three complementary data structures are provided, each an ordinary vector that stays a column in a data frame and slices consistently with it: 'node_vec' is vectorised along the nodes of a graph, 'edge_vec' is vectorised along its edges, and 'agg_vec' (with the tabular 'agg_df') represents the aggregation structure common in data analysis, such as a total row over a set of categories. This makes graph relationships a native part of tidy rectangular data analysis workflows, alongside tools such as those in 'dplyr'. Each of these can also be converted to 'igraph' objects for further analysis.

Authors:Mitchell O'Hara-Wild [aut, cre]

graphvec_0.1.0.tar.gz
graphvec_0.1.0.zip(r-4.7-x86_64)graphvec_0.1.0.zip(r-4.7-arm64)graphvec_0.1.0.zip(r-4.6-x86_64)graphvec_0.1.0.zip(r-4.6-arm64)graphvec_0.1.0.zip(r-4.5-x86_64)
graphvec_0.1.0.tgz(r-4.6-x86_64)graphvec_0.1.0.tgz(r-4.6-arm64)graphvec_0.1.0.tgz(r-4.5-x86_64)graphvec_0.1.0.tgz(r-4.5-arm64)
graphvec_0.1.0.tar.gz(r-4.7-arm64)graphvec_0.1.0.tar.gz(r-4.7-x86_64)graphvec_0.1.0.tar.gz(r-4.6-arm64)graphvec_0.1.0.tar.gz(r-4.6-x86_64)
graphvec_0.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
graphvec/json (API)

# Install 'graphvec' in R:
install.packages('graphvec', repos = c('https://mitchelloharawild.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mitchelloharawild/graphvec/issues

Pkgdown/docs site:https://pkg.mitchelloharawild.com

On CRAN:

Conda:

rustcargo

4.35 score 5 stars 1 scripts 283 downloads 30 exports 10 dependencies

Last updated from:315b9b296e. Checks:4 ERROR, 10 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR196
linux-devel-x86_64ERROR203
source / vignettesOK293
linux-release-arm64OK166
linux-release-x86_64OK189
macos-release-arm64OK149
macos-release-x86_64OK298
macos-oldrel-arm64OK183
macos-oldrel-x86_64OK329
windows-devel-arm64ERROR336
windows-devel-x86_64ERROR310
windows-release-arm64OK458
windows-release-x86_64OK210
windows-oldrel-x86_64OK162
wasm-releaseFAIL172

Exports:agg_dfagg_vecedge_headsedge_incidentedge_is_loopedge_is_multiedge_multiplicityedge_tailsedge_vecedgesgraph_densitygraph_has_loopsgraph_is_directedGraphBackendis_aggregatedn_edgesn_nodesnew_edge_vecnew_node_vecnode_childrennode_degreenode_incidentnode_is_isolatednode_is_leafnode_is_rootnode_neighborsnode_parentsnode_valuesnode_vecnodes

Dependencies:cligluelifecyclemagrittrpillarpkgconfigrlangtibbleutf8vctrs

Readme and manuals

Help Manual

Help pageTopics
Create an aggregation tableagg_df
Create an aggregation vectoragg_vec
Convert a graph vector to an igraph objectas.igraph as.igraph.agg_df as.igraph.agg_vec as.igraph.edge_vec as.igraph.node_vec
Edge endpoints, edge-alignededge_heads edge_tails
Edges touching a nodeedge_incident
Edge position predicatesedge_is_loop edge_is_multi edge_multiplicity
Graph vector along edgesedge_vec
Graph densitygraph_density
Whole-graph predicatesgraph_has_loops graph_is_directed
The shared topology backing a 'node_vec'/'edge_vec' pair (non-hyperedge case only - see _dev/RUST_BACKEND.md). Wraps one of several physical 'Repr' variants, auto-selected at construction from graph shape (_dev/petgraph_data_types.md S3/S5); 'directed' is metadata every variant's query methods interpret, not itself part of the shape decision. This keeps the object immutable and shareable: a 'node_vec', its 'edges()' reorientation, and any 'edge_vec' sliced from it can all hold the same pointer.$.GraphBackend GraphBackend
Is the element an aggregation of smaller datais_aggregated
Node and edge countsn_edges n_nodes
Constructor function for edge_vecnew_edge_vec
Constructor function for node_vecnew_node_vec
Node degreenode_degree
Endpoint nodes of an edgenode_incident
Node position predicatesnode_is_isolated node_is_leaf node_is_root
Neighboring nodesnode_children node_neighbors node_parents
The plain values of a node_vecnode_values
Graph vector along nodesnode_vec
Reorient a graph vectoredges edges.agg_df edges.agg_vec edges.edge_vec edges.node_vec nodes nodes.agg_df nodes.agg_vec nodes.edge_vec nodes.node_vec