class EdgeWeightFilter extends AbstractFilter implements RangeFilter, EdgeFilter {

        private Range range;

        public EdgeWeightFilter() {
            super(NbBundle.getMessage(EdgeWeightBuilder.class, "EdgeWeightBuilder.name"));

            addProperty(Range.class, "range");
        }

        @Override
        public boolean init(Graph graph) {
            return graph.getEdgeCount() != 0;
        }

        @Override
        public boolean evaluate(Graph graph, Edge edge) {
            double weight = edge.getWeight(graph.getView());
            return range.isInRange(weight);
        }

        @Override
        public void finish() {
        }

        @Override
        public Number[] getValues(Graph graph) {<FILL_FUNCTION_BODY>}

        @Override
        public FilterProperty getRangeProperty() {
            return getProperties()[0];
        }

        public Range getRange() {
            return range;
        }

        public void setRange(Range range) {
            this.range = range;
        }
    }

            List<Number> values = new ArrayList<>();
            for (Edge e : graph.getEdges()) {
                double weight = e.getWeight(graph.getView());
                values.add(weight);
            }
            return values.toArray(new Number[0]);
        
<no_super_class>