From: Himadri Choudhury Date: 2006-04-04T18:42:23+09:00 Subject: Re: [QUIZ] Testing DiGraph (#73) ------=_Part_14363_32064191.1144143740588 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Then you have to manually enter all the edges? I wanted to be able to pass an array of edges, so that the array can be generated programmatically. On 4/4/06, Robert Feldt wrote: > > On 4/4/06, Himadri Choudhury wrote: > > Perhaps I can ask this in another way. Is it possible to pass a variabl= e > > collection of paths to create a DiGraph? > > > I don't understand what you mean by "variable collection". > > DiGraph.new([1,2]) create a DiGraph like so > > 1 -> 2 > > and DiGraph.new([1,2], [2,3]) creates a DiGraph like so > > 1 -> 2 -> 3 > > Does this help? > > Regards, > > Robert > > ------=_Part_14363_32064191.1144143740588--