Class NfaImpl<V,E>

java.lang.Object
org.aksw.jena_sparql_api.sparql_path2.NfaImpl<V,E>
All Implemented Interfaces:
Nfa<V,E>

public class NfaImpl<V,E> extends Object implements Nfa<V,E>
  • Field Details

    • graph

      protected org.jgrapht.Graph<V,E> graph
    • startStates

      protected Set<V> startStates
    • endStates

      protected Set<V> endStates
  • Constructor Details

    • NfaImpl

      public NfaImpl(org.jgrapht.Graph<V,E> graph, Set<V> startStates, Set<V> endStates)
  • Method Details

    • getGraph

      public org.jgrapht.Graph<V,E> getGraph()
      Specified by:
      getGraph in interface Nfa<V,E>
    • getStartStates

      public Set<V> getStartStates()
      Specified by:
      getStartStates in interface Nfa<V,E>
    • getEndStates

      public Set<V> getEndStates()
      Specified by:
      getEndStates in interface Nfa<V,E>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      public static <V, E> Nfa<V,E> reverse(Nfa<V,E> nfa)
      IMPORTANT: Only provides an edge reverse view, does not change the edges themselves
      Parameters:
      nfa -
      Returns: