[R] Finding a path using the Graph package

kehler at mathstat.dal.ca kehler at mathstat.dal.ca
Thu Apr 17 23:54:45 CEST 2008


Does anyone know of a way of finding all the nodes that are between a pair
of specified nodes in the excellent graph package (R vers 2.5.0).

I have a class(graphAM) object and need to determine all possible pathways
in this object.

Here's an example:  In the simple case of a--b--c  (where -- denotes
"conected to") the list of all pathways would be: ab ba abc cba cb bc.

Thanks in advance,


More information about the R-help mailing list