From 4f3d71454b129fdf341a60bbf5b2be20c42df505 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 5 Nov 2010 11:13:12 +0100 Subject: tidy + load position --- lib/Graph/GEXF/Node.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/Graph/GEXF/Node.pm') 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', } ); -- cgit v1.2.3