diff options
Diffstat (limited to 'lib/Graph/GEXF')
| -rw-r--r-- | lib/Graph/GEXF/Node.pm | 7 |
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', } ); |
