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
Generating GraphML File
-
- Posts:3
- Joined:13 Jun 2018 09:28 [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
- 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: Generating GraphML File
You can try to use epanet2csv tool to convert to CSV and import as spreadsheet edges table in Gephi.
-
- Posts:3
- Joined:13 Jun 2018 09:28 [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: Generating GraphML File
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
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
- 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: Generating GraphML File
Well you can just import the CSV to Gephi and then export it as graphml
-
- Posts:3
- Joined:13 Jun 2018 09:28 [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: Generating GraphML File
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.
<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.
- 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: Generating GraphML File
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.
Just import an 'edges table' kind of CSV to gephi. That will create edges and its necessary nodes, then just export to graphml.