@@ -207,13 +207,6 @@ private void createKeys(Document document, Element root, GraphModel graphModel)
207207 weightKeyE .setAttribute ("for" , "edge" );
208208 root .appendChild (weightKeyE );
209209
210- Element edgeIdKeyE = document .createElement ("key" );
211- edgeIdKeyE .setAttribute ("id" , "edgeid" );
212- edgeIdKeyE .setAttribute ("attr.name" , "Edge Id" );
213- edgeIdKeyE .setAttribute ("attr.type" , "string" );
214- edgeIdKeyE .setAttribute ("for" , "edge" );
215- root .appendChild (edgeIdKeyE );
216-
217210 if (exportColors ) {
218211 Element colorRKeyE = document .createElement ("key" );
219212 colorRKeyE .setAttribute ("id" , "r" );
@@ -437,13 +430,10 @@ private void createEdges(Document document, Element edgesE, Graph graph) throws
437430
438431 private Element createEdge (Document document , Edge e , Graph graph ) throws Exception {
439432 Element edgeE = document .createElement ("edge" );
440-
433+ edgeE . setAttribute ( "id" , e . getId (). toString ());
441434 edgeE .setAttribute ("source" , e .getSource ().getId ().toString ());
442435 edgeE .setAttribute ("target" , e .getTarget ().getId ().toString ());
443436
444- Element idE = createEdgeId (document , e );
445- edgeE .appendChild (idE );
446-
447437 //Label
448438 if (e .getLabel () != null && !e .getLabel ().isEmpty ()) {
449439 Element labelE = createEdgeLabel (document , e );
@@ -556,14 +546,6 @@ private Element createNodeLabel(Document document, Node n) throws Exception {
556546 return labelE ;
557547 }
558548
559- private Element createEdgeId (Document document , Edge e ) throws Exception {
560- Element idE = document .createElement ("data" );
561- idE .setAttribute ("key" , "edgeid" );
562- idE .setTextContent (e .getId ().toString ());
563-
564- return idE ;
565- }
566-
567549 private Element createEdgeWeight (Document document , Edge e , Graph graph ) throws Exception {
568550 Element weightE = document .createElement ("data" );
569551 weightE .setAttribute ("key" , "weight" );
0 commit comments