Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add expand.bipartite= argument to `[.network()` and `[<-.network()` methods?

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start by reading the as.matrix() behavior discussed in issue 94 and locate the [ and [<-.network() methods that access network entries. Determine how an expand.bipartite argument should make their results consistent with as.matrix(..., matrix.type = "adjacency"), then verify both read and assignment behavior with focused tests.

Written by the indexing model from the issue text.

Description

Per https://github.com/statnet/network/issues/94#issuecomment-3138370212 , the nw[i,j] != as.matrix(nw, matrix.type = "adjacency")[i,j]. You can make it true by passing expand.bipartite = TRUE to as.matrix(). Would it make sense to provide an expand.bipartite= argument to the [ methods to allow it to work in the opposite direction as well?

Dominant language
R
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statnet/network

All issues in statnet/network

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.