Skip to content

Setting attribute to vertex sequence leads to failed assertion #807

@krlmlr

Description

@krlmlr

Describe the bug

A specific usage pattern leads to a failed assertion in the C core.

To reproduce

options(conflicts.policy = list(warn = FALSE))
library(igraph)

gg <- make_ring(3, directed = TRUE)
V(gg)$id <- V(gg)
subgraph(gg, 1)
#> Error in induced_subgraph(graph, vids): At core/core/vector.pmt:483 : Assertion failed: v->stor_begin != NULL. This is an unexpected igraph error; please report this as a bug, along with the steps to reproduce it.
#> Please restart your R session to avoid crashes or other surprising behavior.

Created on 2023-05-21 with reprex v2.0.2

Version information

  • R/igraph version: 342586e
  • R version: 4.3.0
  • Operating system: macOS

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions