isDirected = graphModel.isDirected();
isCanceled = false;
UndirectedGraph undirectedGraph = graphModel.getUndirectedGraphVisible();
undirectedGraph.readLock();
weaklyConnected(undirectedGraph, attributeModel);
if (isDirected) {
DirectedGraph directedGraph = graphModel.getDirectedGraphVisible();
stronglyConnected(directedGraph, attributeModel);