From dbe9cd26fd22cb9b59d62e7453ef263a3b4139ed Mon Sep 17 00:00:00 2001 From: Stijn Date: Thu, 4 Jan 2024 12:30:33 +0100 Subject: [PATCH] Rename argument `fname` to `file_name` for `plot_network` function. --- litstudy/network.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litstudy/network.py b/litstudy/network.py index 99319da..0e8b12e 100644 --- a/litstudy/network.py +++ b/litstudy/network.py @@ -41,7 +41,7 @@ def plot_network( scale=1, iterations=1000, gravity=1, - fname='citation.html' + file_name="network.html" ): """Plot a `networkx.Graph` generated by one of the `build_X_graph` functions in this module. Plotting is done using the `pyvis` library. @@ -54,6 +54,7 @@ def plot_network( :param max_node_size: The radius of the largest node. :param largest_component: Only plot the largest connected component of the graph. + :param file_name: The name of the file where the plot will be saved. """ isolates = list(nx.isolates(g)) if isolates: @@ -153,7 +154,7 @@ def plot_network( ) ) - return v.show(fname) + return v.show(file_name) def build_base_network(