Skip to content

generate_coupling_graph : save the coupling graph only when the file path is provided

generate_coupling_graph saves the coupling graph before returning it as GraphView.

This GraphView has an HTML representation (see its __repr_html_ method) which enables it to be displayed in a web page or a notebook.

In this case, saving the files can be useless.

I propose to save the figure only when file_path is not empty (default).