1 modulegraph determines a dependency graph between Python modules primarily 2 by bytecode analysis for import statements. 3 4 modulegraph uses similar methods to modulefinder from the standard library, 5 but uses a more flexible internal representation, has more extensive 6 knowledge of special cases, and is extensible. 7