diff options
Diffstat (limited to 'lib/Graph/GEXF/Edge.pm')
| -rw-r--r-- | lib/Graph/GEXF/Edge.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Graph/GEXF/Edge.pm b/lib/Graph/GEXF/Edge.pm new file mode 100644 index 0000000..26f2462 --- /dev/null +++ b/lib/Graph/GEXF/Edge.pm @@ -0,0 +1,18 @@ +package Graph::GEXF::Edge; + +use Moose; +use Data::UUID::LibUUID; + +has id => ( + is => 'ro', + isa => 'Str', + required => 1, + default => sub { new_uuid_string() } +); + +has source => (is => 'ro', isa => 'Str', required => 1); +has target => (is => 'ro', isa => 'Str', required => 1); +has label => (is => 'rw', isa => 'Str'); +has weight => (is => 'rw', isa => 'Num', lazy => 1, default => 1); + +1; |
