Created
May 13, 2011 06:23
-
-
Save rjurney/970078 to your computer and use it in GitHub Desktop.
Playing with Pacer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!`which jruby` | |
require 'rubygems' | |
require 'pacer' | |
graph = Pacer.tg | |
graph.import("/tmp/enron_summary.xml") | |
# Focus on one email address, that of Tim Belden | |
sender = graph.v.filter(:address => 'louise.kitchen@enron.com') | |
# Check the vertex's properties | |
sender.inspect | |
# Look into the volume of emails Tim sent to each address | |
out_edges = sender.out_e | |
out_edges.each {|e| vs = e.in_v; vs.each {|v| puts "#{v[:address]} = #{e[:volume]}" } } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Undefined method back= for #<V[1234]>
Line 129 in route.rb