estimate_closeness | R Documentation |
closeness()
Use closeness()
with the cutoff
argument instead.
estimate_closeness(
graph,
vids = V(graph),
mode = c("out", "in", "all", "total"),
cutoff,
weights = NULL,
normalized = FALSE
)
graph |
The graph to analyze. |
vids |
The vertices for which closeness will be calculated. |
mode |
Character string, defined the types of the paths used for measuring the distance in directed graphs. “in” measures the paths to a vertex, “out” measures paths from a vertex, all uses undirected paths. This argument is ignored for undirected graphs. |
cutoff |
The maximum path length to consider when calculating the closeness. If zero or negative then there is no such limit. |
weights |
Optional positive weight vector for calculating weighted
closeness. If the graph has a |
normalized |
Logical scalar, whether to calculate the normalized closeness, i.e. the inverse average distance to all reachable vertices. The non-normalized closeness is the inverse of the sum of distances to all reachable vertices. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.