Getting list of connected nodes to a node
1
0
Entering edit mode
7.5 years ago
An7ar35 • 0

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.7k views
ADD COMMENT
2
Entering edit mode
7.5 years ago
edrezen ▴ 730

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

ADD COMMENT

Login before adding your answer.

Traffic: 2975 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6