From: equinox Date: 2008-11-21T04:56:13+09:00 Subject: Re: BFS in ruby from a hash On Nov 20, 10:18 am, Robert Klemme wrote: > 2008/11/20 equinox : > > > so I'll need a queue to do this? How do you create a queue in ruby? > > Go to the upper right corner of your web browser window. Enter "ruby > queue" in the field you find there and press ENTER. See what happens. > > Frankly, IMHO you could demonstrate a bite more commitment. > > Cheers > > robert > > -- > remember.guy do |as, often| as.you_can - without end Is there another common way to do it without using queue? If the data structure is a hash then those in the same level Are those represented by the same key to hash right?