From a7cc690ced15e1a0191d27034006bfb17a0deeb5 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 23 Jan 2010 19:36:24 +0100 Subject: basic github crawler using api --- lib/githubexplorer/Gexf.pm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/githubexplorer/Gexf.pm (limited to 'lib/githubexplorer/Gexf.pm') diff --git a/lib/githubexplorer/Gexf.pm b/lib/githubexplorer/Gexf.pm new file mode 100644 index 0000000..a82a741 --- /dev/null +++ b/lib/githubexplorer/Gexf.pm @@ -0,0 +1,27 @@ +package githubexplorer::Gexf; + +use Moose; +use XML::Simple; + +has graph => ( + is => 'rw', + isa => 'HashRef', + default => sub { + my $graph = { + gexf => { + version => "1.0", + meta => { creator => ['rtgi'] }, + graph => { + type => 'static', + attributes => { + class => 'node', + type => 'static', + attribute => [ { id => 0, type => 'string' } ] + } + } + } + }; + } +); + +1; -- cgit v1.2.3