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