kinbaku.Graph.set_neighbors

Graph.set_neighbors(u, new_neighbors)[source]

Strictly assign predecessors to a node

Parameters
  • v ([type]) – key of the target node

  • new_predecessors – list or set of the sources key