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

Remove plot.network()'s reliance on the internal representaion of 'network'?

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
r

Research direction

Start at R/plot.R around line 804 and inspect how plot.network uses $oel and $iel to identify isolates. Review the networkLite implementation and the existing is.isolate() or degree() entry points, then determine the generic and method boundaries needed across supported object types. Done means plotting no longer depends on those internal fields and supported network objects retain correct isolate handling.

Written by the indexing model from the issue text.

Description

Specifically,

https://github.com/statnet/network/blob/769972a6d377e608143d8a05a3df8d6bb3de56be/R/plot.R#L804

relies on $oel and $iel solely to determine which nodes are isolates.
This means, e.g., networkLite objects has to implement its own function.

Probably the most elegant fix for this is to move the is.isolate() or maybe even degree() to network and make them generics, then have sna implement methods for whatever types it supports.

@CarterButts , thoughts?

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

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.