/** * Checks for outgoing edges of the node, in the given graph, which contain * the given relation. Relations are matched on if they are GrammaticalRelation * objects or strings. */ public static List<SemanticGraphEdge> outgoingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.outgoingEdgeIterable(node), reln); }
/** * Returns the set of incoming edges for the given node that have the given * relation. * * Because certain edges may remain in string form (prepcs), check for both * string and object form of relations. */ public static List<SemanticGraphEdge> incomingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.incomingEdgeIterable(node), reln); }
/** * Checks for outgoing edges of the node, in the given graph, which contain * the given relation. Relations are matched on if they are GrammaticalRelation * objects or strings. */ public static List<SemanticGraphEdge> outgoingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.outgoingEdgeIterable(node), reln); }
/** * Returns the set of incoming edges for the given node that have the given * relation. * * Because certain edges may remain in string form (prepcs), check for both * string and object form of relations. */ public static List<SemanticGraphEdge> incomingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.incomingEdgeIterable(node), reln); }
/** * Returns the set of incoming edges for the given node that have the given * relation. * * Because certain edges may remain in string form (prepcs), check for both * string and object form of relations. */ public static List<SemanticGraphEdge> incomingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.incomingEdgeIterable(node), reln); }
/** * Checks for outgoing edges of the node, in the given graph, which contain * the given relation. Relations are matched on if they are GrammaticalRelation * objects or strings. */ public static List<SemanticGraphEdge> outgoingEdgesWithReln(IndexedWord node, SemanticGraph sg, GrammaticalRelation reln) { return edgesWithReln(sg.outgoingEdgeIterable(node), reln); }