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.

Version: 0.1.0
Imports: tibble
Suggests: crayon, dplyr, igraph, pillar, testthat (≥ 3.0.0)
Published: 2026-09-03
DOI: 10.32614/CRAN.package.graphvec (may not be active yet)
Author: Mitchell O'Hara-Wild ORCID iD [aut, cre]
Maintainer: Mitchell O'Hara-Wild <mail at mitchelloharawild.com>
BugReports: https://github.com/mitchelloharawild/graphvec/issues
License: MIT + file LICENSE
URL: https://pkg.mitchelloharawild.com/graphvec/, https://github.com/mitchelloharawild/graphvec
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: graphvec results

Documentation:

Reference manual: graphvec.html , graphvec.pdf

Downloads:

Package source: graphvec_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): graphvec_0.1.0.tgz, r-oldrel (arm64): graphvec_0.1.0.tgz, r-release (x86_64): graphvec_0.1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=graphvec to link to this page.