I just found what I wanted.
There is a method on Directed Graphs called successors
that returns just what I was asking. So, in order to achieve that I have only to call it like this:
successors = graph.successors(node)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.