kinbaku.Graph.set_predecessors

Graph.set_predecessors(v, new_predecessors)[source]

Strictly assign predecessors to a node

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

  • new_predecessors – list or set of the sources key