These functions return values or vectors relating to how broad a network is.
net_by_diameter() measures the maximum path length in the network.
net_by_length() measures the average path length in the network.
net_by_diameter(.data)
net_by_length(.data)A network object of class stocnet, igraph, tbl_graph, network, or similar.
Internally any of these will be coerced to an efficient implementation.
For more information on possible coercions, see e.g. manynet::as_stocnet().
A network_measure numeric score.
The object also carries the measure it computed, the range its values
can fall within, and whether and how those values were normalized.
These are shown as a one-line header when the object is printed.
Where a measure offers a choice between several ways of counting the
same thing, it also carries the variant it used.
All can be retrieved with attr().
Both measures count path lengths, and a negative tie is hostility rather
than a channel along which cohesion travels.
Where the network is signed, they therefore consider only the positive
ties. Use manynet::to_unsigned() first to control this yourself.
Note that dropping the negative ties can disconnect the network, in which case the measure covers the reachable pairs only.
Other cohesion:
mark_triangles,
measure_cohesion,
measure_fragmentation,
motif_net,
motif_node
Other measures:
measure_assort_net,
measure_assort_node,
measure_broker_node,
measure_broker_tie,
measure_brokerage,
measure_central_between,
measure_central_close,
measure_central_degree,
measure_central_eigen,
measure_central_tie_between,
measure_central_tie_close,
measure_central_tie_degree,
measure_central_tie_eigen,
measure_closure,
measure_closure_node,
measure_cohesion,
measure_core,
measure_diffusion_infection,
measure_diffusion_net,
measure_diffusion_node,
measure_diverse_net,
measure_diverse_node,
measure_features,
measure_fit,
measure_fragmentation,
measure_hierarchy,
measure_periods
net_by_diameter(fict_marvel)
#> # Diameter [0, Inf)
#> [1] 5
net_by_diameter(to_giant(fict_marvel))
#> # Diameter [0, Inf)
#> [1] 5
net_by_length(fict_marvel)
#> # Average path length [0, Inf)
#> [1] 2.55
net_by_length(to_giant(fict_marvel))
#> # Average path length [0, Inf)
#> [1] 2.55