From 24a21e7d5775f3e070c0acab4985191ebd9d4a31 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Jul 2026 19:18:12 +0000 Subject: [PATCH] chore: restore one-value-per-line layout of long enum defaults The ellipsis-migration rewriter collapsed multi-line enum defaults into single over-long lines with stray inner spaces, e.g. `type = c( "undirected", ... )` in `transitivity()`, and air leaves them alone because `c` is on its skip list. Restore the original one-value-per-line layout for `transitivity()` and `distances()`, in both the signatures and the migration registry. No behavior change; the generated ARG_HANDLE blocks and Rd usage are deparse-based and stay identical. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX --- R/structural-properties.R | 22 ++++++++++++++++++++-- tools/migrations/structural-properties.R | 22 ++++++++++++++++++++-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/R/structural-properties.R b/R/structural-properties.R index 5a15414c336..578eed4bbc3 100644 --- a/R/structural-properties.R +++ b/R/structural-properties.R @@ -1365,7 +1365,14 @@ distances <- function( ..., mode = c("all", "out", "in"), weights = NULL, - algorithm = c( "automatic", "unweighted", "dijkstra", "bellman-ford", "johnson", "floyd-warshall" ) + algorithm = c( + "automatic", + "unweighted", + "dijkstra", + "bellman-ford", + "johnson", + "floyd-warshall" + ) ) { # BEGIN GENERATED ARG_HANDLE: distances, do not edit, see tools/generate-migrations.R if (...length() > 0L) { @@ -2133,7 +2140,18 @@ subgraph.edges <- function(graph, eids, delete.vertices = TRUE) { #' transitivity <- function( graph, - type = c( "undirected", "global", "globalundirected", "localundirected", "local", "average", "localaverage", "localaverageundirected", "barrat", "weighted" ), + type = c( + "undirected", + "global", + "globalundirected", + "localundirected", + "local", + "average", + "localaverage", + "localaverageundirected", + "barrat", + "weighted" + ), ..., vids = NULL, weights = NULL, diff --git a/tools/migrations/structural-properties.R b/tools/migrations/structural-properties.R index 714b84da0c0..66294f77374 100644 --- a/tools/migrations/structural-properties.R +++ b/tools/migrations/structural-properties.R @@ -157,7 +157,14 @@ migrations <- list( ..., mode = c("all", "out", "in"), weights = NULL, - algorithm = c( "automatic", "unweighted", "dijkstra", "bellman-ford", "johnson", "floyd-warshall" ) + algorithm = c( + "automatic", + "unweighted", + "dijkstra", + "bellman-ford", + "johnson", + "floyd-warshall" + ) ) {}, when = "3.0.0" ), @@ -410,7 +417,18 @@ migrations <- list( old = function(graph, type, vids, weights, isolates) {}, new = function( graph, - type = c( "undirected", "global", "globalundirected", "localundirected", "local", "average", "localaverage", "localaverageundirected", "barrat", "weighted" ), + type = c( + "undirected", + "global", + "globalundirected", + "localundirected", + "local", + "average", + "localaverage", + "localaverageundirected", + "barrat", + "weighted" + ), ..., vids = NULL, weights = NULL,