def METHOD_NAME(self, v: T, predecessors: List[T]) -> None:
    v_ni = self._get_node_info(v)
    v_ni.num_predecessors += len(predecessors)
    for u in predecessors:
        u_ni = self._get_node_info(u)
        u_ni.successors.append(v_ni)