summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-05-21 15:27:07 +0200
committerfranck cuny <franck@lumberjaph.net>2011-05-21 15:27:07 +0200
commitb99f3c5c69344a59644c6f08c593162de1748666 (patch)
treec42a37ec4f801c092a6326d6bf403de533936a1d /lib
parentadd and update tests (diff)
downloadgraph-gexf-b99f3c5c69344a59644c6f08c593162de1748666.tar.gz
add attribute 'visualization'
Signed-off-by: franck cuny <franck@lumberjaph.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Graph/GEXF.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Graph/GEXF.pm b/lib/Graph/GEXF.pm
index 46b585a..ae4bf33 100644
--- a/lib/Graph/GEXF.pm
+++ b/lib/Graph/GEXF.pm
@@ -14,6 +14,12 @@ with
   'Graph::GEXF::Role::Attributes' =>
   { for => [qw/node edge/], with_method => 1 };
 
+has visualization => (
+    is        => 'ro',
+    isa       => 'Boolean',
+    predicate => 'has_visualization',
+);
+
 has graph_mode => (
     is       => 'ro',
     isa      => enum( [qw/static dynamic/] ),
@@ -124,6 +130,10 @@ sub add_node {
 
 =over 4
 
+=item visualization
+
+If set to true, the generated graph will include visualizations informations.
+
 =item graph_mode
 
 could be B<static> or B<dynamic>. Default is B<static>