summaryrefslogtreecommitdiff
path: root/lib/githubexplorer/Gexf.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-01-23 19:36:24 +0100
committerfranck cuny <franck@lumberjaph.net>2010-01-23 19:36:24 +0100
commita7cc690ced15e1a0191d27034006bfb17a0deeb5 (patch)
tree6cef1a2e07727e8cd5249764f461222073e8211a /lib/githubexplorer/Gexf.pm
downloadgithub-explorer-a7cc690ced15e1a0191d27034006bfb17a0deeb5.tar.gz
basic github crawler using api
Diffstat (limited to 'lib/githubexplorer/Gexf.pm')
-rw-r--r--lib/githubexplorer/Gexf.pm27
1 files changed, 27 insertions, 0 deletions
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;