Re: [jgrapht-users] Connectivity of Directed Graphs
Brought to you by:
barak_naveh,
perfecthash
From: Joris K. <de...@gm...> - 2011-08-31 13:44:51
|
Is the function neighborListOf(Graph<V,E> g, V vertex) defined in the class Graphs the thing you are looking for? br, Joris On Tue, Aug 30, 2011 at 11:11 AM, Wielant, Ulrich <U.W...@ge...> wrote: > Hello everyone, > > first of all a big congratulation for maintaining this great framework. I am using it since 4 years and I am still happy with it :-) > > Now my question: > > I am using a DirectedGraph and I want to get a list of vertices that are reachable from a given vertex with respect to the directions. The ConnectivityInspector does not care about the edge directions whereas the StrongConnectivityInspector only uses strong (so double directed) connections. > Any hints how I can achieve the list of reachable nodes? > > Example: > > A <--> B <-- C > > reachable(A) => [B] > reachable(B) => [A] > reachable(C) => [A,B] > > Thanks! > Uli > > www.gematronik.com > www.selex-si.de > > Selex Systems Integration GmbH > Sitz der Gesellschaft / Registered Office: Neuss > Registergericht / Register Court: Neuss HR B 1242 > Gesch?ftsf?hrer / Managing Director: Ulrich Nellen > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > |