6263646566676869707172
if( !match.foundMatch() ) return transformed; ElementGraph contractedSubGraph = match.getMatchedGraph(); ElementSubGraph resultSubGraph = asSubGraphOf( rootGraph, contractedSubGraph ); // the bounded sub-graph of the rootGraph transformed.setEndGraph( resultSubGraph ); return transformed; }
93949596979899100101
} public ElementSubGraph getMatchedGraph() { if( matchedGraph == null ) matchedGraph = new ElementSubGraph( elementGraph, foundElements, foundScopes ); return matchedGraph; }
111112113114115116117
GraphPath<FlowElement, Scope> path = pathsIterator.next(); List<FlowElement> vertexList = getPathVertexList( path ); List<Scope> edgeList = path.getEdgeList(); return new ElementSubGraph( current, vertexList, edgeList ); }