List<mxGmlNode> Gmlnodes = gmlGraph.getNodes();
mxCell v = (mxCell) vertex;
String id = v.getId();
mxGmlNode gmlNode = new mxGmlNode(id, null);
addNodeData(gmlNode, v);
Gmlnodes.add(gmlNode);
gmlGraph.setNodes(Gmlnodes);
mxGmlGraph gmlGraphx = new mxGmlGraph();
gmlGraphx = decodeGraph(graph, vertex, gmlGraphx);
if (!gmlGraphx.isEmpty())
{
List<mxGmlGraph> nodeGraphs = gmlNode.getNodeGraph();
nodeGraphs.add(gmlGraphx);
gmlNode.setNodeGraph(nodeGraphs);
}
}
return gmlGraph;
}