Skip to content

Commit

Permalink
doc: clarify weights use in layout_with_kk()
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Feb 3, 2025
1 parent 16896de commit d9ef523
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions R/layout.R
Original file line number Diff line number Diff line change
Expand Up @@ -1491,9 +1491,9 @@ with_graphopt <- function(...) layout_spec(layout_with_graphopt, ...)
#' iterations.
#' @param kkconst Numeric scalar, the Kamada-Kawai vertex attraction constant.
#' Typical (and default) value is the number of vertices.
#' @param weights Edge weights, larger values will result longer edges.
#' Note that this is opposite to [layout_with_fr()]. Weights must
#' be positive.
#' @param weights Edge weights, larger values will result in longer edges.
#' Note that this is the opposite of [layout_with_fr()], which produces
#' shorter edges for larger weights. Weights must be positive.
#' @param minx If not `NULL`, then it must be a numeric vector that gives
#' lower boundaries for the \sQuote{x} coordinates of the vertices. The length
#' of the vector must match the number of vertices in the graph.
Expand Down
5 changes: 3 additions & 2 deletions man/get.edge.ids.Rd

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

5 changes: 3 additions & 2 deletions man/get_edge_ids.Rd

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

6 changes: 3 additions & 3 deletions man/layout_with_kk.Rd

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

0 comments on commit d9ef523

Please sign in to comment.