Class LabeledEdgeImpl<V,T>

java.lang.Object
org.jgrapht.graph.DefaultEdge
org.aksw.commons.jena.jgrapht.LabeledEdgeImpl<V,T>
Type Parameters:
V -
T -
All Implemented Interfaces:
Serializable, Cloneable, LabeledEdge<V,T>

public class LabeledEdgeImpl<V,T> extends org.jgrapht.graph.DefaultEdge implements LabeledEdge<V,T>
TODO This class could make use of Triplet (although Triplet should probably not be tied to jGraphT and thus should not inherit from DefaultEdge)
Author:
raven
See Also:
  • Field Details

    • source

      protected V source
    • target

      protected V target
    • label

      protected T label
  • Constructor Details

    • LabeledEdgeImpl

      public LabeledEdgeImpl()
    • LabeledEdgeImpl

      public LabeledEdgeImpl(T label)
    • LabeledEdgeImpl

      public LabeledEdgeImpl(V source, V target, T label)
  • Method Details

    • getLabel

      public T getLabel()
      Specified by:
      getLabel in interface LabeledEdge<V,T>
    • setLabel

      public void setLabel(T label)
      Specified by:
      setLabel in interface LabeledEdge<V,T>
    • getSource

      public V getSource()
      Specified by:
      getSource in interface LabeledEdge<V,T>
      Overrides:
      getSource in class org.jgrapht.graph.DefaultEdge
    • getTarget

      public V getTarget()
      Specified by:
      getTarget in interface LabeledEdge<V,T>
      Overrides:
      getTarget in class org.jgrapht.graph.DefaultEdge
    • toString

      public String toString()
      Overrides:
      toString in class org.jgrapht.graph.DefaultEdge
    • isEpsilon

      public static <V, T> boolean isEpsilon(LabeledEdge<V,T> edge)
    • clone

      public Object clone()
      Overrides:
      clone in class Object