Fix not generating enough edges in network.
Fix not adding all possible ancestors and thus creating not all paths.