if $a is dependent on $b, return -1 if the reverse, return 1 otherwise return 0