0
我有一個圖形的例子,其名稱爲random
的圖形屬性的值爲23
。有沒有辦法在不違反核心格式的情況下以這種格式表示值的列表作爲圖形屬性?如何使用graphml格式表示一個可迭代的屬性
<?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">
<key id="g_random" for="graph" attr.name="random" attr.type="double"/>
<graph id="G" edgedefault="undirected">
<data key="g_random">23</data>
<node id="n0">
</node>
<node id="n1">
</node>
<edge source="n0" target="n1">
</edge>
</graph>
由於