Interface ElementFilter<K extends Element>

  • Type Parameters:
    K - element class
    All Superinterfaces:
    Filter
    All Known Subinterfaces:
    EdgeFilter, NodeFilter

    public interface ElementFilter<K extends Element>
    extends Filter
    Basic filters for elements (nodes or edges). For a given object the filter's role is to return true if the element is kept or false if it is removed.

    This filter is useful for dealing with attributes, which can either be in nodes or edges. As a filter can't be for nodes and edges at the same time the filter has to specify K.

    Author:
    Mathieu Bastian
    • Method Detail

      • init

        boolean init​(Graph graph)
      • evaluate

        boolean evaluate​(Graph graph,
                         K element)
      • finish

        void finish()