Skip to content

Commit 6be3bf9

Browse files
committed
chore: Sync autogen
1 parent 24ef858 commit 6be3bf9

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

R/aaa-auto.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,11 +2554,12 @@ personalized_pagerank_vs_impl <- function(
25542554
rewire_impl <- function(
25552555
rewire,
25562556
n,
2557-
mode = 0L
2557+
mode = c("simple", "simple_loops")
25582558
) {
25592559
# Argument checks
25602560
ensure_igraph(rewire)
25612561
n <- as.numeric(n)
2562+
mode <- switch_igraph_arg(mode, "simple" = 0L, "simple_loops" = 1L)
25622563

25632564
on.exit(.Call(R_igraph_finalizer))
25642565
# Function call
@@ -6695,12 +6696,13 @@ write_graph_pajek_impl <- function(
66956696
write_graph_gml_impl <- function(
66966697
graph,
66976698
outstream,
6698-
options = 0L,
6699+
options = c("default", "encode_only_quot"),
66996700
id,
67006701
creator = NULL
67016702
) {
67026703
# Argument checks
67036704
ensure_igraph(graph)
6705+
options <- switch_igraph_arg(options, "default" = 0L, "encode_only_quot" = 1L)
67046706
id <- as.numeric(id)
67056707

67066708
on.exit(.Call(R_igraph_finalizer))

tools/stimulus/functions-R.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,11 +790,6 @@ igraph_write_graph_dimacs_flow:
790790
INOUT GRAPH graph, OUTFILE outstream, VERTEX source=0, VERTEX target=0,
791791
VECTOR capacity
792792
793-
igraph_write_graph_gml:
794-
R:
795-
DEFAULTS:
796-
options: 0L
797-
798793
igraph_write_graph_dot:
799794

800795
#######################################

tools/stimulus/types-RR.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ RECIP:
374374
DEFAULT: c("default", "ratio")
375375
INCONV: '%I% <- switch_igraph_arg(%I%, "default" = 0L, "ratio" = 1L)'
376376

377+
REWIRING_MODE:
378+
DEFAULT:
379+
SIMPLE: c("simple", "simple_loops")
380+
INCONV: '%I% <- switch_igraph_arg(%I%, "simple" = 0L, "simple_loops" = 1L)'
381+
377382
SPARSEMAT:
378383
INCONV: requireNamespace("Matrix", quietly = TRUE); %I% <- as(as(as(%I%, "dMatrix"), "generalMatrix"), "CsparseMatrix")
379384

@@ -476,6 +481,11 @@ EDGE_TYPE_SW:
476481
%I% <- switch_igraph_arg(%I%,
477482
"simple" = 0L, "loop" = 1L, "loops" = 1L, "multi" = 6L, "multiple" = 6L, "all" = 7L)
478483
484+
WRITE_GML_SW:
485+
DEFAULT:
486+
DEFAULT: c("default", "encode_only_quot")
487+
INCONV: '%I% <- switch_igraph_arg(%I%, "default" = 0L, "encode_only_quot" = 1L)'
488+
479489
GRAPH_PRODUCT_TYPE:
480490
DEFAULT:
481491
CARTESIAN: c("cartesian", "lexicographic", "strong", "tensor", "modular")

0 commit comments

Comments
 (0)