Package com.gengoai.hermes
Class RelationEdgeFactory
- java.lang.Object
-
- com.gengoai.hermes.RelationEdgeFactory
-
- All Implemented Interfaces:
EdgeFactory<Annotation>
,Serializable
public class RelationEdgeFactory extends Object implements EdgeFactory<Annotation>
Factory class for constructingRelationEdge
s- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelationEdgeFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge<Annotation>
createEdge(@NonNull Annotation from, @NonNull Annotation to, @NonNull JsonEntry entry)
Edge<Annotation>
createEdge(Annotation from, Annotation to, double weight)
Class<? extends Edge>
getEdgeClass()
boolean
isDirected()
-
-
-
Method Detail
-
createEdge
public Edge<Annotation> createEdge(Annotation from, Annotation to, double weight)
- Specified by:
createEdge
in interfaceEdgeFactory<Annotation>
-
createEdge
public Edge<Annotation> createEdge(@NonNull @NonNull Annotation from, @NonNull @NonNull Annotation to, @NonNull @NonNull JsonEntry entry)
- Specified by:
createEdge
in interfaceEdgeFactory<Annotation>
-
getEdgeClass
public Class<? extends Edge> getEdgeClass()
- Specified by:
getEdgeClass
in interfaceEdgeFactory<Annotation>
-
isDirected
public boolean isDirected()
- Specified by:
isDirected
in interfaceEdgeFactory<Annotation>
-
-