Permalink
Browse files

Fixed another long code line.

  • Loading branch information...
1 parent 1e630e2 commit 3597294812675463e32f374a5c5f842bda4ce26a @ptwobrussell committed Jan 28, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 recipe__create_rt_graph.py
@@ -44,7 +44,9 @@ def create_rt_graph(tweets):
twitter_search = twitter.Twitter(domain='search.twitter.com')
search_results = []
for page in range(1,MAX_PAGES+1):
- search_results.append(twitter_search.search(q=Q, rpp=RESULTS_PER_PAGE, page=page))
+ search_results.append(
+ twitter_search.search(q=Q, rpp=RESULTS_PER_PAGE, page=page)
+ )
all_tweets = [tweet for page in search_results for tweet in page['results']]
@@ -56,5 +58,6 @@ def create_rt_graph(tweets):
print >> sys.stderr, "Number nodes:", g.number_of_nodes()
print >> sys.stderr, "Num edges:", g.number_of_edges()
- print >> sys.stderr, "Num connected components:", len(nx.connected_components(g.to_undirected()))
+ print >> sys.stderr, "Num connected components:",
+ len(nx.connected_components(g.to_undirected()))
print >> sys.stderr, "Node degrees:", sorted(nx.degree(g))

0 comments on commit 3597294

Please sign in to comment.