-
-
Notifications
You must be signed in to change notification settings - Fork 205
bug in assortativity_nominal #1283
Copy link
Copy link
Closed
Labels
AI 🤖For issues that can be handled by a coding agent. A scheduled workflow will look at those.For issues that can be handled by a coding agent. A scheduled workflow will look at those.featurea feature request or enhancementa feature request or enhancement
Milestone
Metadata
Metadata
Assignees
Labels
AI 🤖For issues that can be handled by a coding agent. A scheduled workflow will look at those.For issues that can be handled by a coding agent. A scheduled workflow will look at those.featurea feature request or enhancementa feature request or enhancement
Describe the bug
When trying to compute assortativity for categorical labels attached to nodes, an error is returned when the labels are letters but not when the labels are numbers. It is mentioned that the bug is unexpected and to report it with a reproducible example.
To reproduce
The script below reproduces the bug
Error in assortativity_nominal(g, types = V(g)$random3) :
At core/core/vector.pmt:126 : Assertion failed: size >= 0. 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.
In addition: Warning message:
In assortativity_nominal(g, types = V(g)$random3) :
NAs introduced by coercion
Version information
Which version of igraph are you using and where did you obtain it?
igraph_1.6.0
from CRAN
R version 4.3.3 (2024-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)