Relax networkx dependency
The previous networkx dependency restriction results in scikit-image==0.19 being installed. This older version of scikit-image does not have a wheel for linux on python3.11, so it requires a full build from source which leads to very long build times for the final image.
Edited by Ahmed Ilyas