Skip to content

Commit

Permalink
Rename argument fname to file_name for plot_network function.
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnh committed Jan 4, 2024
1 parent 48c5a83 commit 312c565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion litstudy/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 312c565

Please sign in to comment.