iVis-at-Bilkent / cytoscape.js-graphml

A Cytoscape.js extension to import from and export to GraphML format
MIT License
31 stars 8 forks source link

Warning for deprecated usage #16

Open PermanAtayev opened 5 years ago

PermanAtayev commented 5 years ago

Setting a style bypass at element creation is deprecated

warning is popping for each node in the graph that is being converted. To test it the graph below can be used: <?xml version="1.0" encoding="UTF-8"?>

<graphml xmlns="http://graphml.graphdrawing.org/xmlns"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
     http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
  <graph id="G" edgedefault="undirected">
    <node id="n0">
      <data key="height">40</data>
      <data key="width">60</data>
    </node>
    <node id="n1">
      <data key="height">40</data>
      <data key="width">60</data>
    </node>
    <node id="n2">
      <data key="height">30</data>
      <data key="width">30</data>
    </node>
    <node id="n3">
      <data key="height">30</data>
      <data key="width">30</data>
    </node>
    <node id="n4">
      <data key="height">50</data>
      <data key="width">45</data>
    </node>
    <node id="n5">
      <data key="height">45</data>
      <data key="width">45</data>    
    </node>
    <node id="n6">
      <data key="height">10</data>
      <data key="width">10</data>    
    </node>
    <node id="n7"/>
    <node id="n8"/>
    <node id="n9"/>
    <node id="n10">
      <data key="height">15</data>
      <data key="width">15</data>  
    </node>
    <edge id="e0" source="n0" target="n2"/>
    <edge id="e1" source="n1" target="n2"/>
    <edge id="e2" source="n2" target="n3"/>
    <edge id="e3" source="n3" target="n5"/>
    <edge id="e4" source="n3" target="n4"/>
    <edge id="e5" source="n4" target="n6"/>
    <edge id="e6" source="n6" target="n5"/>
    <edge id="e7" source="n5" target="n7"/>
    <edge id="e8" source="n6" target="n8"/>
    <edge id="e9" source="n8" target="n7"/>
    <edge id="e10" source="n8" target="n9"/>
    <edge id="e11" source="n8" target="n10"/>
  </graph>
</graphml>