Copilot

Results 4682 issues of Copilot

Adding named vertices to unnamed graphs creates confusing output where existing vertices have `NA` names and edges display as `NA--NA`. ## Changes - **Error on name mismatch**: Added error (abort)...

Graph constructors were inconsistent - some defaulted to directed (`make_tree`, `make_star`, `make_graph`) while most defaulted to undirected (`sample_gnm`, `make_ring`, `make_full_graph`). This creates unnecessary confusion. ## Changes - **`make_tree()`**: Now defaults...

The `bfs()` and `dfs()` functions returned `parent` as an `igraph.vs` object containing NA values for root vertices, causing `str()` and indexing operations to fail with "Unknown vertex selected" errors. ```r...

Addresses inconsistent parameter naming across the API where "nodes", "vids", and "vertices" were used interchangeably for similar concepts, reducing predictability. ## Changes Implements the naming convention agreed in issue discussion:...

The `sample_last_cit()` function had defaults `agebins = n / 7100` and `pref = (1:(agebins + 1))^-3` that only work for n ≥ 7100, causing silent failures with confusing error messages...

The auto-generated `biconnected_components_impl()` was creating duplicate empty fields with dot notation (`tree.edges`, `component.edges`, `articulation.points`) alongside the correct underscore fields from the C layer. ## Root Cause The impl function received...

Users need edge lists in the flat vector format `c(from1, to1, from2, to2, ...)` for `make_graph()` and C library interop. Currently requires inefficient transpose workaround: `as.vector(t(as_edgelist(g)))`. ## Changes - Added...

## Fix for assortativity_nominal with character types - [x] Understand the issue: `assortativity_nominal` fails with character labels (like 'A', 'B') because `as.numeric()` produces NAs - [x] Examine the current implementation...

## Fix return.vs.es option handling in multiple functions This PR fixes several functions that ignore the `return.vs.es` option and always return `igraph.vs` or `igraph.es` objects even when `return.vs.es = FALSE`....

Exposes priority 0 functions and new graph generators from igraph 0.10 for the first R release based on 0.10. ## Functions Added **Priority 0:** - `any_mutual()` - checks if directed...