[SOLVED] Hidden subgraphs

All questions about the GEXF (see http://gexf.net before)
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
erikb
Posts:3
Joined:26 Feb 2010 15:07
[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] Hidden subgraphs

Post by erikb » 26 Feb 2010 15:29

how to implement hidden subgraphs? E.g. after doing a web crawl we have nodes representing sites. The links however are between the pages, but the visualization shows them between the sites. For us it is a
great way to keep the maps readable but still have all the information from the network available. Could you tell me how to do this with GEXF?

User avatar
mbastian
Gephi Architect
Posts:728
Joined:10 Dec 2009 10:11
Location:San Francisco, CA
[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: Hidden subgraphs

Post by mbastian » 26 Feb 2010 18:47

To achieve that, you need to create a hierarchy of nodes in the GEXF and leave edges between pages. Thanks to automated meta-edges creation in Gephi, meta-edges are automatically created between sites from links between pages. That is done automatically when you are visualizing the sites level.

You have two choices for writing nodes hierarchy:

Code: Select all

<graph mode="static" defaultedgetype="directed">
   <nodes>
      <node id="site_1" label="http://site1">
      <nodes>
         <node id="page_1.1" label="http://page11">
      <nodes>
   </nodes>
</graph>
or

Code: Select all

<nodes>
   <node id="site_1" label="http://site1" />
   <node id="page_1.1" label="http://page11" pid="site_1" />
</nodes>
and as said, only edges between pages. I hope that answered your question.

Note that curently, meta-edges support in Gephi is still partial (cannot be used in filters) but that will be fixed soon.

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