Set<Set<ClusterElement>> result = new HashSet<Set<ClusterElement>>();
Iterator<AbstractPetriNetElementModel> i = firstNodeType.iterator();
long time1 = System.nanoTime();
while (i.hasNext()) {
AbstractPetriNetElementModel firstNode = i.next();
if (useVanDerAalstModel) {
Map<String, AbstractPetriNetElementModel> elementMapRef = m_currentEditor.getModelProcessor()
.getElementContainer().getSourceElements(firstNode.getId());
arcConfig.m_numIncoming = (elementMapRef != null) ? elementMapRef.size() : 0;
elementMapRef = m_currentEditor.getModelProcessor().getElementContainer().getTargetElements(
firstNode.getId());
arcConfig.m_numOutgoing = (elementMapRef != null) ? elementMapRef.size() : 0;
} else {
NetAlgorithms.getArcConfiguration(firstNode, arcConfig);
}
if (arcConfig.m_numOutgoing > 1) {
Iterator<AbstractPetriNetElementModel> j = secondNodeType.iterator();
while (j.hasNext()) {
AbstractPetriNetElementModel secondNode = j.next();
if (useVanDerAalstModel) {
Map<String, AbstractPetriNetElementModel> elementMapRef = m_currentEditor.getModelProcessor()
.getElementContainer().getSourceElements(secondNode.getId());
arcConfig.m_numIncoming = (elementMapRef != null) ? elementMapRef.size() : 0;
elementMapRef = m_currentEditor.getModelProcessor().getElementContainer().getTargetElements(
secondNode.getId());
arcConfig.m_numOutgoing = (elementMapRef != null) ? elementMapRef.size() : 0;
} else {
NetAlgorithms.getArcConfiguration(secondNode, arcConfig);
}