Work around networkx failing to update neighbor nodes. Faster polynomial multiplication