make_diagram/3

make_diagram(+Inputfilename, +Ouputfilename)*

This will crawl the files following the use_module, ensure_loaded directives withing the inputfilename. The result will be a file in dot format. You can make a pdf at the shell by asking dot -Tpdf filename > output.pdf.