tests/testthat/_snaps/utils-assert-args.md

ensure_igraph() works

Must provide a graph object (provided wrong object type).
Must provide a graph object (provided wrong object type).
Must provide a graph object (provided `NULL`).

igraph.match.arg() works

Code
  cluster_leiden(make_graph("Zachary"), objective_function = "something")
Condition
  Error in `cluster_leiden()`:
  ! `arg` must be one of "cpm" or "modularity", not "something".


Try the igraph package in your browser

Any scripts or data that you put into this service are public.

igraph documentation built on Oct. 20, 2024, 1:06 a.m.