Edge viz attr ignored for gexf

Once it's running
Post Reply [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
zedruid
Posts:1
Joined:19 May 2017 19:03
[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
Edge viz attr ignored for gexf

Post by zedruid » 19 May 2017 19:08

Hello, I have googled this and searched in this forum for a solution to this problem and I've been unable to find anything helpful.
In short, gephi 0.9.1 simply ignored the viz attribute of edges regarding to shape.
My toy example in gexf is this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.3draft" xmlns:viz="http://www.gexf.net/1.3draft/viz" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gex
f.net/1.3draft http://www.gexf.net/1.3draft/gexf.xsd" version="1.3">
<graph defaultedgetype="undirected">
<nodes>
<node id="1" label="1">
<viz:shape value="disc"/>
</node>
<node id="2" label="2">
<viz:shape value="disc"/>
</node>
</nodes>
<edges>
<edge id="e0" source="1" target="2" weight="1">
<viz:shape value="dotted"/>
</edge>
</edges>
</graph></gexf>
and when opened with gephi I get solid lines for the edge, instead of dotted.
Any hint about what could I'm doing wrong here?
Thanks in advance.

User avatar
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: Edge viz attr ignored for gexf

Post by eduramiba » 22 May 2017 19:21

Hi,
Shape is still not supported by Gephi, though it's part of the gexf format.

Post Reply
[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
[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