[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 •[SOLVED] Show attributes of graph in preview
Page 1 of 1

[SOLVED] Show attributes of graph in preview

Posted: 19 Jul 2010 17:52
by oschrenk
Is there a possibility to show the attributes of a node and/or a edge as the label in the preview?

This example (from http://graphml.graphdrawing.org/primer/ ... tesExample )

Code: Select all

<?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">
  <key id="d0" for="node" attr.name="color" attr.type="string">
    <default>yellow</default>
  </key>
  <key id="d1" for="edge" attr.name="weight" attr.type="double"/>
  <graph id="G" edgedefault="undirected">
    <node id="n0">
      <data key="d0">green</data>
    </node>
    <node id="n1"/>
    <node id="n2">
      <data key="d0">blue</data>
    </node>
    <node id="n3">
      <data key="d0">red</data>
    </node>
    <node id="n4"/>
    <node id="n5">
      <data key="d0">turquoise</data>
    </node>
    <edge id="e0" source="n0" target="n2">
      <data key="d1">1.0</data>
    </edge>
    <edge id="e1" source="n0" target="n1">
      <data key="d1">1.0</data>
    </edge>
    <edge id="e2" source="n1" target="n3">
      <data key="d1">2.0</data>
    </edge>
    <edge id="e3" source="n3" target="n2"/>
    <edge id="e4" source="n2" target="n4"/>
    <edge id="e5" source="n3" target="n5"/>
    <edge id="e6" source="n5" target="n4">
      <data key="d1">1.1</data>
    </edge>
  </graph>
</graphml>
will show widened edges, which is cool. But how can I show multiple/all data key/values next to a node/edge. The data is loaded and can be inspected in the Data Laboratory but I can't find a way to display that info.

I'm a just blind or is this a feature I'm missing?

UPDATE: Edited title/question to clarify that I wanted to show attributes in preview mode

Re: Show attributes of graph

Posted: 19 Jul 2010 18:32
by eduramiba
Hi,
You can do this in overview clicking in the highlighted button of the screenshot.

Although I think you can't do this on preview for now.

Re: Show attributes of graph

Posted: 19 Jul 2010 18:37
by oschrenk
Sorry, I have to clarify: I meant the preview, as I wanted to created a pdf with my annotated graph.

But thanks for your screenshot as I hadn't figured out to do that in the preview nor the overview.

Re: Show attributes of graph in preview

Posted: 20 Jul 2010 07:51
by mbastian
Hi, if you do it in Overview, it changes it also in Preview.