protected Transferable createTransferable(JComponent c) {
if (c instanceof JGraph) {
JGraph graph = (JGraph) c;
GraphModel model = graph.getModel();
if (!graph.isSelectionEmpty()) {
Object[] flat = graph.getDescendants(graph.order(graph
.getSelectionCells()));
ParentMap pm = ParentMap.create(model, flat, false, true);
ConnectionSet cs = ConnectionSet.create(model, flat, false);
Map viewAttributes = GraphConstants.createAttributes(flat,
graph.getGraphLayoutCache());