[SOLVED] Trying to generate graph (Newbie)

Get help with your data
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
Marcus
Posts:3
Joined:02 Aug 2010 22:02
[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
[SOLVED] Trying to generate graph (Newbie)

Post by Marcus » 02 Aug 2010 22:04

Hi All,

I have an .xml file which contains

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml">
<graph edgedefault="directed">
<node id="u1821978"/>
-
-
-
-
-
<node id="u1821978"/>

<edge source="u324049" target="u1114290">
<desc>972823;Other - Internet</desc>
</edge>
-
-
-
-
<edge source="u195815" target="u1737099">
<desc>3701644;Alternative Medicine</desc>
</edge>

</edge>
</graph>
</graphml>
i am unable to load the XML into Gephi. I would appreciate any help.
Thank you very much

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[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: Trying to generate graph (Newbie)

Post by admin » 03 Aug 2010 16:49

Hi,

Does it have the ".graphml." extension instead of ".xml"? Gephi parses the file extension to determine which importer to use.

Marcus
Posts:3
Joined:02 Aug 2010 22:02
[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: Trying to generate graph (Newbie)

Post by Marcus » 04 Aug 2010 08:13

it has .xml as extension but I did renamed it to .graphml and tried to load and was unsuccessful

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[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: Trying to generate graph (Newbie)

Post by admin » 04 Aug 2010 10:23

What is the error message?

Marcus
Posts:3
Joined:02 Aug 2010 22:02
[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: Trying to generate graph (Newbie)

Post by Marcus » 04 Aug 2010 12:15

Error msg:

Code: Select all

Loading the XML file

Impossible to find a compatible Importer.
The file format is not supported. Check file's extension
Original Header

<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml">
<graph edgedefault="directed">
I even replaced it with this header but has the same error msg
<?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>
</graphml>

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[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: Trying to generate graph (Newbie)

Post by admin » 04 Aug 2010 14:04

Hi, I successfully loaded the following graph.

I guess the problem should come from an encoding error.
Attachments
test.graphml
(499Bytes)Downloaded 235 times

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