File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
159160def build_base_network (
You can’t perform that action at this time.
0 commit comments