kinbaku.Graph.common_neighbors

Graph.common_neighbors(u, v)[source]

Returns the set of common neighbors between two nodes

Parameters
  • u (str) – key of the first node

  • v (str) – key of the second node

Returns

the set of all common neighbors

Return type

set