class HasSelfLoopFilter implements NodeFilter {

        public HasSelfLoopFilter() {
        }

        @Override
        public boolean init(Graph graph) {
            return true;
        }

        @Override
        public boolean evaluate(Graph graph, Node node) {<FILL_FUNCTION_BODY>}

        @Override
        public void finish() {
        }

        @Override
        public String getName() {
            return NbBundle.getMessage(HasSelfLoopBuilder.class, "HasSelfLoopBuilder.name");
        }

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

            EdgeIterable edgeIterable = graph.getEdges(node);
            for (Edge e : edgeIterable) {
                if (e.isSelfLoop()) {
                    edgeIterable.doBreak();
                    return true;
                }
            }
            return false;
        
<no_super_class>