Returns a numeric value that represents the degrees of
separation between the two named authors that were provided to
kevinbacran::kb_pair()
. This value is the number of edges, or
packages, required to link those two authors by the shortest route. The
value is analagous to the 'Kevin Bacon Number' or 'Erdos Number'.
kb_distance(pair_graph)
pair_graph | A tidygraph object of CRAN authors/packages created with
|
---|
A single numeric value
# NOT RUN { separation <- kb_distance(pair_graph) print(separation) # }