public class NFAGraph extends org.jgrapht.graph.DirectedPseudograph<NFAVertexND,NFAEdge>
| Constructor and Description |
|---|
NFAGraph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAcceptingState(NFAVertexND acceptingState) |
boolean |
addEdge(NFAEdge newEdge)
Adds a new edge to the NFA graph
|
boolean |
addVertex(NFAVertexND v) |
NFAGraph |
copy() |
boolean |
equals(Object o) |
Set<NFAVertexND> |
getAcceptingStates() |
NFAEdge |
getEdge(NFAEdge e) |
NFAVertexND |
getInitialState() |
boolean |
isAcceptingState(NFAVertexND state) |
boolean |
isAcceptingState(String stateNumber) |
Set<NFAEdge> |
outgoingEpsilonEdgesOf(NFAVertexND v)
All the edges representing an epsilon transition from a vertex
|
void |
removeAcceptingState(NFAVertexND acceptingState) |
NFAGraph |
reverse() |
void |
setInitialState(NFAVertexND initialState) |
String |
toString() |
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, iterables, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSupplier, setEdgeWeight, setVertexSupplier, vertexSetassertVertexExist, containsEdge, hashCode, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toStringFromSetspublic NFAVertexND getInitialState()
public void setInitialState(NFAVertexND initialState)
public void addAcceptingState(NFAVertexND acceptingState)
public boolean isAcceptingState(String stateNumber)
public boolean isAcceptingState(NFAVertexND state)
public void removeAcceptingState(NFAVertexND acceptingState)
public Set<NFAVertexND> getAcceptingStates()
public NFAGraph copy()
public boolean addEdge(NFAEdge newEdge)
newEdge - The new edge to addpublic Set<NFAEdge> outgoingEpsilonEdgesOf(NFAVertexND v)
v - The vertex to find the epsilon transitions from.public boolean addVertex(NFAVertexND v)
addVertex in interface org.jgrapht.Graph<NFAVertexND,NFAEdge>addVertex in class org.jgrapht.graph.AbstractBaseGraph<NFAVertexND,NFAEdge>public boolean equals(Object o)
equals in class org.jgrapht.graph.AbstractGraph<NFAVertexND,NFAEdge>public NFAGraph reverse()
public String toString()
toString in class org.jgrapht.graph.AbstractGraph<NFAVertexND,NFAEdge>Copyright © 2021. All rights reserved.