@Override
public void setGraph(InspectableGraph model, Map<Object, Vertex> state2vertex) {
for (VertexIterator iter = model.vertices(); iter.hasNext();) {
Vertex v = iter.nextVertex();
for (EdgeIterator incoming = model.incidentEdges(v, EdgeDirection.IN); incoming.hasNext();) {
Edge in = incoming.nextEdge();
Transition inTrans = transition(in, model);
for (EdgeIterator outgoing = model.incidentEdges(v, EdgeDirection.OUT); outgoing.hasNext();) {
Edge out = outgoing.nextEdge();
Transition outTrans = transition(out, model);
TransitionPair pair = new TransitionPair(inTrans, outTrans);
addItem(pair);
}
}