Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/snlab-ch/migraph into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
jaeltan committed Nov 15, 2023
2 parents 952aae4 + 515319a commit 78e6f95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/measure_heterogeneity.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ node_heterophily <- function(.data, attribute){
make_node_measure(ei, .data)
}

#' @describeIn heterogeneity Calculates the degree assortativity in a graph.
#' @describeIn heterogeneity Calculates the degree assortativity in a network.
#' @importFrom igraph assortativity_degree
#' @examples
#' network_assortativity(mpn_elite_mex)
Expand Down
2 changes: 1 addition & 1 deletion R/model_play.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ play_segregation <- function(.data,
}, FUN.VALUE = numeric(1))
if(length(options)==0) next
move_to <- switch(choice_function,
satisficing = unoccupied[which(options <= heterophily)[1]],
satisficing = unoccupied[sample(which(options <= heterophily[unoccupied]), 1)],

Check notice on line 293 in R/model_play.R

View check run for this annotation

codefactor.io / CodeFactor

R/model_play.R#L293

Function "options" is undesirable. As an alternative, use withr::with_options() for a temporary change instead of permanently modifying the session options. (undesirable_function_linter)
optimising = unoccupied[which.min(options)[1]],

Check notice on line 294 in R/model_play.R

View check run for this annotation

codefactor.io / CodeFactor

R/model_play.R#L294

Function "options" is undesirable. As an alternative, use withr::with_options() for a temporary change instead of permanently modifying the session options. (undesirable_function_linter)
minimising = unoccupied[which.min(igraph::distances(temp,
igraph::V(temp)[dissatisfied],
Expand Down
2 changes: 1 addition & 1 deletion man/heterogeneity.Rd

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

0 comments on commit 78e6f95

Please sign in to comment.