sort is very efficient and it sounds strange that your algorithm depends on the order of vertices.
I'd say this sounds like a XY Problem , and you should elaborate more what you are trying to achieve.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Algorithm Complexity and Determinism of Graph Module
by LanX
in thread Algorithm Complexity and Determinism of Graph Module
by ownlifeful
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |