[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Generating GraphML File
Page 1 of 1

Generating GraphML File

Posted: 13 Jun 2018 11:08
by karwan1986
Dear All

I have an Epanet Inp file. I need to generate GraphML File for that inp file, to configure it in Gephi. What would be the best an easy way to generate GraphML file please. Many thanks for any advice.

Reagrds
Karwan

Re: Generating GraphML File

Posted: 13 Jun 2018 11:19
by eduramiba
You can try to use epanet2csv tool to convert to CSV and import as spreadsheet edges table in Gephi.

Re: Generating GraphML File

Posted: 13 Jun 2018 21:28
by karwan1986
Dear eduramiba

First of all, super thanks for replying........

I just need GraphML File form, since I am doing clustering with it. And also, the inp file has larger number of nodes and likes, using GraphML File helps to easy lunched with Gepghi than CSV form. Could you please make your suggestion to create a GraphML File for and an inp file.

Thank you

Re: Generating GraphML File

Posted: 13 Jun 2018 21:37
by eduramiba
Well you can just import the CSV to Gephi and then export it as graphml

Re: Generating GraphML File

Posted: 14 Jun 2018 19:37
by karwan1986
I have convert the inp file to CSV and imported to gephi, but it is not working like what I expected. The Epanet file has nodes and pipes (edges). The graphML file should first introduces nodes and secondly (source and target) for the pipes or links. The following is an example of it:
<node id="0"/>
<node id="1"/>
<node id="2"/>
<node id="3"/>
<node id="4"/>
<node id="5"/>
<node id="6"/>
<edge source="1797" target="1865"/>
<edge source="718" target="553"/>
<edge source="1179" target="1575"/>
<edge source="1778" target="1773"/>
<edge source="229" target="1282"/>
<edge source="473" target="313"/>
<edge source="553" target="1124"/>
<edge source="1577" target="1532"/>

If you don't mind, can I send you the inp file please.

Thank you very much for your kind and continues help.

Re: Generating GraphML File

Posted: 18 Jun 2018 09:51
by eduramiba
What does your exported graphml from gephi look like? It should be fine.

Just import an 'edges table' kind of CSV to gephi. That will create edges and its necessary nodes, then just export to graphml.