Uses of Class
com.gengoai.hermes.RelationEdge
-
Packages that use RelationEdge Package Description com.gengoai.hermes Hermes is a framework for Natural Language Processing. -
-
Uses of RelationEdge in com.gengoai.hermes
Methods in com.gengoai.hermes that return RelationEdge Modifier and Type Method Description RelationEdge
RelationGraph. addEdge(Annotation fromVertex, Annotation toVertex)
RelationEdge
RelationGraph. addEdge(Annotation fromVertex, Annotation toVertex, double weight)
static RelationEdge
RelationEdge. from(@NonNull Annotation source, @NonNull Relation relation)
RelationEdge
RelationGraph. getEdge(Annotation v1, Annotation v2)
RelationEdge
RelationGraph. removeEdge(Annotation fromVertex, Annotation toVertex)
Methods in com.gengoai.hermes that return types with arguments of type RelationEdge Modifier and Type Method Description Set<RelationEdge>
RelationGraph. edges()
Set<RelationEdge>
RelationGraph. getEdges(Annotation vertex)
Set<RelationEdge>
RelationGraph. getInEdges(Annotation vertex)
Set<RelationEdge>
RelationGraph. getOutEdges(Annotation vertex)
List<RelationEdge>
RelationGraph. shortestConnection(@NonNull Annotation source, @NonNull Annotation target)
Determines the shortest connection (undirected) between the source and target annotationList<RelationEdge>
RelationGraph. shortestPath(@NonNull Annotation source, @NonNull Annotation target)
Determines the shortest path (directed) between the source and target annotationMethod parameters in com.gengoai.hermes with type arguments of type RelationEdge Modifier and Type Method Description RelationGraph
RelationGraph. filterByEdge(@NonNull Predicate<RelationEdge> edgePredicate)
Filters the graph by evaluating the edges using the given predicate.static RelationGraph
RelationGraph. from(@NonNull Collection<RelationEdge> edges)
Creates a RelationGraph from a collection of edgesvoid
RelationGraph. removeEdgeIf(@NonNull Predicate<RelationEdge> predicate)
Removes an edge given from the graph if it evaluates to true using the given predicate.
-