Update requirements
Use networkx in favour of custom digraph
Add minimal dead code elimination