From: Robert Feldt Date: 2006-04-04T18:48:33+09:00 Subject: Re: [QUIZ] Testing DiGraph (#73) On 4/4/06, Himadri Choudhury wrote: > 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. > Well this is valid in Ruby and should give a hint (notch, notch): def m(*a) p a end m(1, 2) # => [1,2] a = [3,4] m(*a) # => [3,4] Best Regards, Robert