`as_igraph` breaks when there is an isolated vertex

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
backend

Research direction

Start by reproducing the supplied as_igraph(graph_create(...)) call and inspect the as_igraph entry point. Confirm that a graph containing an isolated vertex converts successfully after constructing the empty graph and adding vertices and edges; the issue provides no file or test path to run.

Written by the indexing model from the issue text.

Description

as_igraph(graph_create(c(.5, .5), matrix(0, 2, 2)))

Solution is to make an empty graph, then add vertices and edges, rather than making if from an edge dataframe

Dominant language
R
Stars
23
Forks
1
Avg merge
1h 42m
Merged PRs (30d)
3

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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 openpharma/graphicalMCP

All issues in openpharma/graphicalMCP

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.