>
> i was thinking of this, but i'm not sure. since we're always starting
> with the smallest element (which means zero) does that mean that zero is
> ALWAYS the first element that gets printed?
> thanks
>
If there are edge(s) connected to zero, then the answer is yes. If not,
no.
.--------..------------..--------..-----------------------..--------.
| o\ /o || John C Wu || o\ /o || Engineering Science || o\ /o |
| ---- || || ---- || University of Toronto || ---- |
`--------'`------------'`--------'`-----------------------'`--------'
"Memory is like an orgasm. It's a lot better if you don't have to fake it."
Seymour Cray commenting on virtual memory