This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Getting list of connected nodes to a node

Is there a way to get a list of all connected nodes? i.e. in a graph A->B, A->C, A<-D for node A getting {B, C} I'm trying to apply and run an SCC algo on the graph. Thanks.

gatb

1 answer

Hello, You could have a look here, in particular the "successor" method of the Graph class.

Log in to answer this question.