From d9af9dfea832719dde71472520a0718c3a353482 Mon Sep 17 00:00:00 2001 From: Vladimir Fokow <57260995+VladimirFokow@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:17:26 +0200 Subject: [PATCH 1/2] correct the docstring parameter name to be the same as the variable name --- netgraph/_node_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netgraph/_node_layout.py b/netgraph/_node_layout.py index 345c0de..9ce0a15 100755 --- a/netgraph/_node_layout.py +++ b/netgraph/_node_layout.py @@ -1690,7 +1690,7 @@ def get_geometric_layout(edges, edge_length, node_size=0., tol=1e-3, origin=(0, ---------- edges : list The edges of the graph, with each edge being represented by a (source node ID, target node ID) tuple. - edge_lengths : dict + edge_length : dict Mapping of edges to their lengths. node_size : scalar or dict, default 0. Size (radius) of nodes. From d71fc3ecf6c8f4935c8de18eaa0b5411abc27fa8 Mon Sep 17 00:00:00 2001 From: Vladimir Fokow <57260995+VladimirFokow@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:10:33 +0200 Subject: [PATCH 2/2] correct the docstring parameter name `tol` --- netgraph/_node_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netgraph/_node_layout.py b/netgraph/_node_layout.py index 9ce0a15..6345c04 100755 --- a/netgraph/_node_layout.py +++ b/netgraph/_node_layout.py @@ -1696,7 +1696,7 @@ def get_geometric_layout(edges, edge_length, node_size=0., tol=1e-3, origin=(0, Size (radius) of nodes. Providing the correct node size minimises the overlap of nodes in the graph, which can otherwise occur if there are many nodes, or if the nodes differ considerably in size. - tolerance : float, default 1e-3 + tol : float, default 1e-3 The tolerance of the cost function. Small values increase the accuracy, large values improve the computation time. origin : tuple, default (0, 0) The (float x, float y) coordinates corresponding to the lower left hand corner of the bounding box specifying the extent of the canvas.