Skip to content

Commit bd6abe5

Browse files
committed
Names
1 parent 79c7b06 commit bd6abe5

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

R/centrality.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,12 @@ betweenness <- function(
448448
) {
449449
res <- betweenness_cutoff_impl(
450450
graph = graph,
451+
weights = weights,
451452
vids = v,
452453
directed = directed,
453-
weights = weights,
454454
cutoff = cutoff
455455
)
456+
456457
if (normalized) {
457458
vc <- as.numeric(vcount(graph))
458459
if (is_directed(graph) && directed) {
@@ -477,10 +478,11 @@ edge_betweenness <- function(
477478
e <- as_igraph_es(graph, e)
478479
res <- edge_betweenness_cutoff_impl(
479480
graph = graph,
480-
directed = directed,
481481
weights = weights,
482+
directed = directed,
482483
cutoff = cutoff
483484
)
485+
484486
res[as.numeric(e)]
485487
}
486488

R/community.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,6 @@ cluster_leiden <- function(
17001700
res <- community_leiden_impl(
17011701
graph = graph,
17021702
weights = weights,
1703-
# FIXME: Also check below, might not be covered by tests
17041703
vertex.weights = vertex_weights,
17051704
resolution = resolution,
17061705
beta = beta,
@@ -1718,7 +1717,6 @@ cluster_leiden <- function(
17181717
res <- community_leiden_impl(
17191718
graph = graph,
17201719
weights = weights,
1721-
# FIXME: Also check above, might not be covered by tests
17221720
vertex.weights = vertex_weights,
17231721
resolution = resolution,
17241722
beta = beta,

R/interface.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,5 +744,7 @@ incident_edges <- function(graph, v, mode = c("out", "in", "all", "total")) {
744744
#' # Result should be the same
745745
#' is_simple(g)
746746
invalidate_cache <- function(graph) {
747-
invalidate_cache_impl(graph)
747+
invalidate_cache_impl(
748+
graph = graph
749+
)
748750
}

R/versions.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,6 @@ print.igraph_version <- function(x, ...) {
244244

245245
c_version <- function() {
246246
version <- version_impl()
247+
247248
version[["version_string"]]
248249
}

0 commit comments

Comments
 (0)