finesse.utilities.graph.module_graph

finesse.utilities.graph.module_graph(module, G=None, external_modules=False, include_root_module=False)[source]

Creates a directed graph from a module and all of its submodules. External submodules can be included in graph but they will not be traversed since that could cause the graph to walk an absurd number of packages.

The root module is typically not included since it tends to clutter the graph.