flament_path_length: Flament's Path Length Measure

Description Usage Arguments See Also Examples

View source: R/historical.R

Description

Calculates path length as defined in Flament (1963). That is, sums the values of each edge in the path, if all edges exist. Otherwise, returns NA.

Usage

1
flament_path_length(sociomatrix, path)

Arguments

sociomatrix

a nonnegative, real valued sociomatrix.

path

an integer vector of node indices from sociomatrix.

See Also

flament_average_path_length

Examples

1
2
3
4
5
## Calculate Flament's Path Length along a path in a sociomatrix
flament_path_length(YangKnoke01, path = c(1,2,5))

## This path doesn't exist
flament_path_length(YangKnoke01, path = c(1,2,4,5))

gretel documentation built on Aug. 22, 2019, 5:10 p.m.