public void dfs(Object root, mxGraph graph) {
		if (root == null)
			return;
		if (graph.getModel().isVertex(root)) {
			visited.add(root);
		}

		for (Object n : graph.getChildCells(root)) {
			if (!visited.contains(n))
				dfs(n, graph);
		}
	}