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)

Arguments

pair_graph

A tidygraph object of CRAN authors/packages created with kb_pair()

Value

A single numeric value

Examples

# NOT RUN {
separation <- kb_distance(pair_graph)
print(separation)
# }