summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-11-05 11:13:12 +0100
committerfranck cuny <franck@lumberjaph.net>2010-11-05 11:13:12 +0100
commit4f3d71454b129fdf341a60bbf5b2be20c42df505 (patch)
tree670e101e1daa0bd4d827621fd5b7891ee3ffdfc7
parentadd position role (diff)
downloadgraph-gexf-4f3d71454b129fdf341a60bbf5b2be20c42df505.tar.gz
tidy + load position
-rw-r--r--lib/Graph/GEXF/Node.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Graph/GEXF/Node.pm b/lib/Graph/GEXF/Node.pm
index 0c45a04..4da3984 100644
--- a/lib/Graph/GEXF/Node.pm
+++ b/lib/Graph/GEXF/Node.pm
@@ -3,7 +3,8 @@ package Graph::GEXF::Node;
 use Moose;
 
 use Graph::GEXF::Edge;
-with 'Graph::GEXF::Role::Attributes' => {for => [qw/node/]};
+with 'Graph::GEXF::Role::Position',
+  'Graph::GEXF::Role::Attributes' => { for => [qw/node/] };
 
 has id => (is => 'ro', isa => 'Str', required => 1);
 has label => (is => 'rw', isa => 'Str');
@@ -16,8 +17,8 @@ has edges => (
     handles => {
         add_edge    => 'set',
         has_link_to => 'exists',
-        all_edges => 'keys',
-        get_edge => 'get',
+        all_edges   => 'keys',
+        get_edge    => 'get',
     }
 );