[R] Finding a path using the Graph package

From: <kehler_at_mathstat.dal.ca>
Date: Thu, 17 Apr 2008 18:54:45 -0300 (ADT)


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,


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 17 Apr 2008 - 22:07:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Apr 2008 - 23:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive