public class DeleteGraphFromNode extends SsurgeonEdit
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LABEL |
Constructor and Description |
---|
DeleteGraphFromNode(java.lang.String destroyNodeName) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<IndexedWord> |
crawl(IndexedWord vertex,
SemanticGraph sg) |
protected static void |
crawl(IndexedWord vertex,
SemanticGraph sg,
java.util.Set<IndexedWord> seenVerts) |
boolean |
evaluate(SemanticGraph sg,
SemgrexMatcher sm)
Given a matching instance (via the SemgrexMatcher), performs an in-place
modification on the given SemanticGraph.
|
static DeleteGraphFromNode |
fromArgs(java.lang.String args) |
java.lang.String |
toEditString() |
addNamedNode, equals, getNamedNode, getOwningPattern, setOwningPattern, toString
public static final java.lang.String LABEL
public static DeleteGraphFromNode fromArgs(java.lang.String args)
public java.lang.String toEditString()
toEditString
in class SsurgeonEdit
protected static void crawl(IndexedWord vertex, SemanticGraph sg, java.util.Set<IndexedWord> seenVerts)
protected static java.util.Set<IndexedWord> crawl(IndexedWord vertex, SemanticGraph sg)
public boolean evaluate(SemanticGraph sg, SemgrexMatcher sm)
SsurgeonEdit
evaluate
in class SsurgeonEdit