private Set<SNode> getMatchedNodes(SDocumentGraph graph) {

    Set<SNode> matchedNodes = new HashSet<>();

    for (SNode node: graph.getNodes()) {
       if (node.getFeature(AnnisConstants.ANNIS_NS, AnnisConstants.FEAT_MATCHEDNODE) != null)
         matchedNodes.add(node);
    }

    return matchedNodes;
  }
private Set < SNode > getMatchedNodes ( SDocumentGraph graph ) { Set < SNode > matchedNodes = new HashSet < > ( ) ; for ( SNode node : graph . getNodes ( ) ) { if ( node . getFeature ( AnnisConstants . ANNIS_NS , AnnisConstants . FEAT_MATCHEDNODE ) != null ) matchedNodes . add ( node ) ; } return matchedNodes ; }
Takes a match and returns the matched nodes.

@param graph

@throws java.io.IOException