g2p is used on the ReadAlong Studio back-end server, and causes a fairly high amount of RAM to get used.
This is more complex than replacing networkx algorithms: if we could find a way to memory map the English lexicon from disk, instead of loading in into RAM, that would let us realize a significant memory saving on the API server, for both the g2p backend and the RAS web-api back-end.