So I have written some simple code which lets you write
<?php
function poll_define_hooks() {
$hooks['implement']['nodeapi'] = array('before' => array('forum'), 'after' => array('taxonomy'));
}
?>
This will define a directed graph. So, the code does a depth first search. This has two uses: detects cycles and orders as well. The whole code with some test code is 2K. It's in my sandbox.
Commenting on this Story is closed.
we can use this code to detect circular depencies also, if we want to.