Skip to content

signnet

1.1.0Package record

Methods to Analyse Signed Networks

0packages depend
5Kdownloads / year
86.8%test coverage
13/13flavors OK

Overview

About

Methods for the analysis of signed networks. This includes several measures for structural balance as introduced by Cartwright and Harary (1956) doi:10.1037/h0046049, blockmodeling algorithms from Doreian (2008) doi:10.1016/j.socnet.2008.03.005, various centrality indices, and projections of signed two-mode networks introduced by Schoch (2020) doi:10.1080/0022250X.2019.1711376.

Changes in 1.1.0

This release fixes a number of bugs, rewrites the blockmodeling algorithms and speeds up several functions considerably. Results of signed_blockmodel() and signed_blockmodel_general() differ from earlier versions (see below).

Bug fixes

  • as_adj_complex() now respects the attr argument and works with named vertices. This also fixes laplacian_matrix_complex(), as_incidence_complex() and complex_walks() for attributes other than "type".
  • laplacian_matrix_signed(sparse = TRUE) no longer errors. Normalized Laplacians (signed and complex) no longer return NaN for isolated vertices.
  • sample_islands_signed() always returns islands.n * islands.size vertices (previously failed when the highest-numbered vertices had no edges).
  • balance_score(method = "walk") no longer overflows to NaN on dense networks. balance_score(method = "triangles") returns NA for networks without triangles.
  • triad_census_signed() returns the census in canonical order.
  • eigen_centrality_signed() returns a real vector for directed networks (or errors if the dominant eigenvalue is complex).
  • ggblock() colors ties correctly if only one sign is present. ggsigned(type = "complex") now uses attr for edge colors and no longer overwrites the type attribute.
  • as_signed_proj() handles vertex names containing "-", "pos" or "neg".
  • complex_walks() validates k.
  • signed_blockmodel_general() returned a membership that did not match the reported criterion, and a wrong (even negative) criterion for alpha != 0.5. The meaning of alpha now matches signed_blockmodel().
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
  • signed_blockmodel(annealing = FALSE) no longer returns the random initial partition for networks with large blocks, and it always takes the best improving move.
  • signed_blockmodel() and signed_blockmodel_general() validate k, alpha and blockmat (square, symmetric for undirected networks).

Maintenance

  • Signed adjacency and incidence matrices are built internally instead of using the deprecated attr argument of igraph. Values of multiple edges are still summed.
  • Shared input validation. Errors no longer include the internal call.
  • Triad census lookup tables moved from the R source to internal data (data-raw/triad_tables.R).
  • Removed unused C++ code and added src/Makevars.
  • sample_gnp_signed() and sample_bipartite_signed() validate p_neg.
  • Added examples for ggblock(), ggsigned() and frustration_exact().
  • Requires R >= 3.5.

Performance

  • count_signed_triangles(), signed_triangles() and count_complex_triangles() are vectorized (several hundred times faster on networks with many triangles).
  • as_incidence_complex() and degree_signed() are vectorized and use sparse matrices. complex_walks() is about twice as fast.
  • graph_circular_signed() computes arc lengths directly from the sampled angles, which also avoids NaNs from rounding errors.
  • Both blockmodeling functions share a new C++ implementation (greedy local search and simulated annealing) that no longer copies the adjacency matrix for every move. signed_blockmodel(annealing = TRUE) no longer uses stats::optim() and is about 25x faster.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.7 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-10-15
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
  • NOTE13 OK, 1 NOTE2026-04-22
  • ERROR12 OK, 1 NOTE, 1 ERROR2026-04-18
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 575 wordsVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
Help pages
33
Examples that run
100%24 run in a plain check (3 of them under a condition)
Exported functions with examples
80%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
27%

Downloads

5K
CRAN downloads in the past year
Rank #5,956 · ~14/day · ~417/mo
Daily download trend is not available in this view yet.
64630 days
1.4K90 days
5K1 year
Compare downloads with other packages →
Also on397 r2u5 autocran

Repository

23Stars
7Forks
1Open issues
0Open PRs
7Releases
177Commits
3Commit identities
snanetwork-analysissigned-networks
177 commits · Last activity 2026-10-01
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
1
Median days to close, 50 most recently updated closed PRs
0

PRs over time

2026-07-11 · 02026-10-01 · 0
PracticesBeta

15 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/schochastics/signnet on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductContributing guide
Docs source (5)
README.RmdpkgdownQuarto project

GitHub Pages site last deployed 2026-10-01 · The repository has a site deploy workflow

pkgdown site last built 2026-10-01

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 4 practices
Reproducibility and dev environment (2)
data-raw/Binder
CRAN release process (1)
cran-comments.md
Research and citation (1)
CITATION.cff
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-09-30
    Pull request it wrote: opened by a project member
    Commits: at least 7 crediting it in the message
Models named in its commits
  • Claude Opus 5.57 commits · Sep to Oct 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing signnet adds 11 packages (8 with compiled code, 11 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (1)
R >= 3.5
Imports (3)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.5.0 (2020)
Releases (17)

Pick two releases to compare their code metrics.

  • 1.1.0Latest
    record
    2026-10-01 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.6
    record
    2025-11-06 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.5
    record
    2025-02-05 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.4
    record
    2024-01-08 · diff ↗
  • 1.0.3
    record
    2023-12-15 · diff ↗
  • 1.0.2
    record
    2023-09-08 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.1
    record
    2023-01-27 · diff ↗
  • 1.0.0
    record
    2022-12-22 · diff ↗ ·
    removed 1 export
    laplacian_angle
    added 5 exports
    graph_from_adjacency_matrix_signed, graph_from_edgelist_signed, is_signed, sample_bipartite_signed, sample_gnp_signed
  • 0.8.1
    record
    2022-10-18 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.0
    record
    2022-02-13 · diff ↗ ·
    added 1 export
    frustration_exact
  • R
    R 4.1.0 released · 2021-05-18
Show 9 earlier eventsHide 9 earlier events

Package metadata

First published
2020-01-24
Total releases
17 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5
Bundled data
168 KB / 3 files
Download size
1.0 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("signnet")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.21105/joss.04987.

The repository also keeps a CITATION.cff.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for signnet version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy