kinbaku.Graph.common_predecessors

Graph.common_predecessors(u, v)[source]

Returns the set of common predecessors between two nodes

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

  • v (str) – key of the second node

Returns

the set of all common predecessors

Return type

set