Prevent recursion when creating circular networks.