Skip to content

Commit dbe9cd2

Browse files
committed
Rename argument fname to file_name for plot_network function.
1 parent 48c5a83 commit dbe9cd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

litstudy/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def plot_network(
4141
scale=1,
4242
iterations=1000,
4343
gravity=1,
44-
fname='citation.html'
44+
file_name="network.html"
4545
):
4646
"""Plot a `networkx.Graph` generated by one of the `build_X_graph`
4747
functions in this module. Plotting is done using the `pyvis` library.
@@ -54,6 +54,7 @@ def plot_network(
5454
:param max_node_size: The radius of the largest node.
5555
:param largest_component: Only plot the largest connected component of
5656
the graph.
57+
:param file_name: The name of the file where the plot will be saved.
5758
"""
5859
isolates = list(nx.isolates(g))
5960
if isolates:
@@ -153,7 +154,7 @@ def plot_network(
153154
)
154155
)
155156

156-
return v.show(fname)
157+
return v.show(file_name)
157158

158159

159160
def build_base_network(

0 commit comments

Comments
 (0)