digraph: Add feature to get all successors and predecessors