Constructing Adjacency Matrices Based on Spatial and Feature Similarity
Overview
Constructs sparse adjacency matrices from spatial coordinates, feature measurements, class labels, and temporal indices. Supports nearest-neighbor graphs, heat-kernel weights, graph Laplacians, diffusion operators, and bilateral smoothers for graph-based data analysis, following spectral graph methods in von Luxburg (2007) doi:10.1007/s11222-007-9033-z, diffusion maps in Coifman and Lafon (2006) doi:10.1016/j.acha.2006.04.006, and bilateral filtering in Tomasi and Manduchi (1998) doi:10.1109/ICCV.1998.710815.
- Initial CRAN release.
- Functions for constructing spatial and feature-weighted adjacency matrices.
- K-nearest neighbor graph construction with heat, binary, and cosine kernels.
- Class-based graph tools:
class_graph,homogeneous_neighbors,heterogeneous_neighbors. - Spatial constraint matrices for multi-block data (
spatial_constraints,feature_weighted_spatial_constraints). - Diffusion kernels and commute-time distances on graphs.
- Label similarity matrices (
binary_label_matrix,diagonal_label_matrix).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK11 OK2026-04-25
- ERROR7 OK, 1 ERROR2026-04-22
Documentation
- Help pages
- 91 (1 internal)
- Examples that run
- 81%73 run in a plain check · 17 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/bbuchsbaum/adjoin on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-08 · The repository has a site deploy workflow
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2025-08-19Seen in the repository: .claude, .claude/agents, CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdCommits: at least 12 crediting it in the message
- Cursorfirst seen 2026-09-01Pull request it wrote: opened by a project memberCommits: at least 1 crediting it in the message
- Claude Sonnet 4.65 commits · Apr 2026
- Claude Opus 4.52 commits · Jan 2026
Dependencies
Installing adjoin adds 18 packages (12 with compiled code, 13 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-04-21 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-21
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 506 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("adjoin")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.