Skip to content

Commit

Permalink
Fix argument name partial matching
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Nov 17, 2023
1 parent f494d6e commit 1e3a43e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions R/graph_measures.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ graph_assortativity <- function(attr, in_attr = NULL, directed = TRUE) {
#' @inheritParams igraph::count_automorphisms
#' @importFrom igraph count_automorphisms
#' @export
graph_automorphisms <- function(sh = 'fm', color = NULL) {
graph_automorphisms <- function(sh = 'fm', colors = NULL) {
graph <- .G()
color <- enquo(color)
color <- eval_tidy(color, .N())
as.numeric(count_automorphisms(graph, color = color, sh = sh)$group_size)
colors <- enquo(colors)
colors <- eval_tidy(colors, .N())
as.numeric(count_automorphisms(graph, colors = colors, sh = sh)$group_size)
}
#' @describeIn graph_measures Get the size of the largest clique. Wraps [igraph::clique_num()]
#' @importFrom igraph clique_num
Expand Down
9 changes: 8 additions & 1 deletion man/graph_measures.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e3a43e

Please sign in to comment.