Gephi doesent display any of the below listed attributes
Anyone know the reason?
Using standard import for grapml
Example of file found below:
<?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="directed">
<node id="n0">
<data key="labels">realiseringsdel</data>
<data key="id">subdoman=A37</data>
<data key="namn">A37</data>
<data key="typ">subdomanrealiseringsdel</data>
<data key="antalRaderKod">254576</data>
<data key="antalDatabaser">2</data>
<data key="antalKomponenter">55</data>
<data key="kallId">1-2</data>
<data key="antalApcGrupper">1</data>
<data key="antalBeroendenIn">2</data>
<data key="antalBeroendenUt">22</data>
</node>
</graph>
</graphml>
Gephi dont reád attributes
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Gephi dont reád attributes
You need to specify attribute types.
This is the correct file:
Also you will need to specify id like in my example, not as an attribute (it causes an exception).
This is the correct file:
Code: Select all
<?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="label" for="node" attr.name="label" attr.type="string"/>
<key id="id" for="node" attr.name="id" attr.type="string"/>
<key id="namn" for="node" attr.name="namn" attr.type="string"/>
<key id="typ" for="node" attr.name="typ" attr.type="string"/>
<key id="antalRaderKod" for="node" attr.name="antalRaderKod" attr.type="int"/>
<key id="antalDatabaser" for="node" attr.name="antalDatabaser" attr.type="int"/>
<key id="antalKomponenter" for="node" attr.name="antalKomponenter" attr.type="int"/>
<key id="kallId" for="node" attr.name="kallId" attr.type="string"/>
<key id="antalApcGrupper" for="node" attr.name="antalApcGrupper" attr.type="int"/>
<key id="antalBeroendenIn" for="node" attr.name="antalBeroendenIn" attr.type="int"/>
<key id="antalBeroendenUt" for="node" attr.name="antalBeroendenUt" attr.type="int"/>
<graph id="G" edgedefault="directed">
<node id="subdoman=A37">
<data key="label">realiseringsdel</data>
<data key="namn">A37</data>
<data key="typ">subdomanrealiseringsdel</data>
<data key="antalRaderKod">254576</data>
<data key="antalDatabaser">2</data>
<data key="antalKomponenter">55</data>
<data key="kallId">1-2</data>
<data key="antalApcGrupper">1</data>
<data key="antalBeroendenIn">2</data>
<data key="antalBeroendenUt">22</data>
</node>
</graph>
</graphml>