} else {
undirectedGraph = graph.getView().getGraphModel().getHierarchicalUndirectedGraph(graph.getView());
}
attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel(graph.getGraphModel().getWorkspace());
cc.weaklyConnected(undirectedGraph, attributeModel);
componentId = cc.getGiantComponent();
column = attributeModel.getNodeTable().getColumn(ConnectedComponents.WEAKLY);
return column != null && componentId != -1;
}