Class Vertex<T extends ExplicitVertexID>

java.lang.Object
org.jruby.dirgra.Vertex<T>
All Implemented Interfaces:
Comparable<Vertex<T>>

public class Vertex<T extends ExplicitVertexID> extends Object implements Comparable<Vertex<T>>
  • Field Details

  • Constructor Details

  • Method Details

    • addEdgeTo

      public void addEdgeTo(Vertex destination)
    • addEdgeTo

      public void addEdgeTo(Vertex destination, Object type)
    • addEdgeTo

      public void addEdgeTo(T destination)
    • addEdgeTo

      public void addEdgeTo(T destination, Object type)
    • removeEdgeTo

      public boolean removeEdgeTo(Vertex destination)
    • addOutgoingEdge

      protected void addOutgoingEdge(Edge<T> newEdge)
    • addIncomingEdge

      protected void addIncomingEdge(Edge<T> newEdge)
    • removeOutgoingEdge

      protected void removeOutgoingEdge(Edge<T> edge)
    • removeIncomingEdge

      protected void removeIncomingEdge(Edge<T> edge)
    • removeAllIncomingEdges

      public void removeAllIncomingEdges()
    • removeAllOutgoingEdges

      public void removeAllOutgoingEdges()
    • removeAllEdges

      public void removeAllEdges()
    • inDegree

      public int inDegree()
    • outDegree

      public int outDegree()
    • getIncomingEdgesOfType

      public Iterable<Edge<T>> getIncomingEdgesOfType(Object type)
    • getIncomingEdgesNotOfType

      public Iterable<Edge<T>> getIncomingEdgesNotOfType(Object type)
    • getOutgoingEdgesOfType

      public Iterable<Edge<T>> getOutgoingEdgesOfType(Object type)
    • getIncomingSourceData

      public T getIncomingSourceData()
    • getIncomingSourceDataOfType

      public T getIncomingSourceDataOfType(Object type)
    • getIncomingSourcesData

      public Iterable<T> getIncomingSourcesData()
    • getIncomingSourcesDataOfType

      public Iterable<T> getIncomingSourcesDataOfType(Object type)
    • getIncomingSourcesDataNotOfType

      public Iterable<T> getIncomingSourcesDataNotOfType(Object type)
    • getOutgoingEdgesNotOfType

      public Iterable<Edge<T>> getOutgoingEdgesNotOfType(Object type)
    • getOutgoingDestinationsData

      public Iterable<T> getOutgoingDestinationsData()
    • getOutgoingDestinationsDataOfType

      public Iterable<T> getOutgoingDestinationsDataOfType(Object type)
    • getOutgoingDestinationsDataNotOfType

      public Iterable<T> getOutgoingDestinationsDataNotOfType(Object type)
    • getOutgoingDestinationData

      public T getOutgoingDestinationData()
    • getOutgoingDestinationDataOfType

      public T getOutgoingDestinationDataOfType(Object type)
    • getFirstEdge

      private Edge<T> getFirstEdge(Iterator<Edge<T>> iterator)
    • getIncomingEdgeOfType

      public Edge<T> getIncomingEdgeOfType(Object type)
    • getOutgoingEdgeOfType

      public Edge<T> getOutgoingEdgeOfType(Object type)
    • getIncomingEdge

      public Edge<T> getIncomingEdge()
    • getOutgoingEdge

      public Edge<T> getOutgoingEdge()
    • getIncomingEdges

      public Collection<Edge<T>> getIncomingEdges()
    • getOutgoingEdges

      public Collection<Edge<T>> getOutgoingEdges()
    • getData

      public T getData()
    • getID

      public int getID()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Vertex<T> that)
      Specified by:
      compareTo in interface Comparable<T extends ExplicitVertexID>