From 06186710d5b77c91e3dc81a796a07824e2bd0a20 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Wed, 16 Dec 2015 08:31:30 +1100 Subject: [PATCH] Update outdated docstring of _add_edge_filter --- skimage/future/graph/rag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/future/graph/rag.py b/skimage/future/graph/rag.py index 8790281c..6a45447b 100644 --- a/skimage/future/graph/rag.py +++ b/skimage/future/graph/rag.py @@ -42,10 +42,10 @@ def min_weight(graph, src, dst, n): def _add_edge_filter(values, graph): - """Create edge in `g` between the first element of `values` and the rest. + """Create edge in `graph` between central element of `values` and the rest. - Add an edge between the first element in `values` and - all other elements of `values` in the graph `g`. `values[0]` + Add an edge between the middle element in `values` and + all other elements of `values` into `graph`. ``values[len(values) // 2]`` is expected to be the central value of the footprint used. Parameters