added fanIn() to find graphs that depend on sub