def lanl_graph():
 import networkx as nx
 try:
  fh = open('lanl_routes.edgelist', 'r')
 except IOError:
  print 'lanl.edges not found'
  raise
 G = nx.Graph()
 time = {}
 time[0] = 0
 for line in fh.readlines():
  (head, tail, rtt) = line.split()
  G.add_edge(int(head), int(tail))
  time[int(head)] = float(rtt)
 G0 = sorted(nx.connected_component_subgraphs(G), key=len, reverse=True)[0]
 G0.rtt = {}
 for n in G0:
  G0.rtt[n] = time[n]
 return G0

def lanl_graph ( ) : import networkx as nx try : fh = open ( 'lanl_routes.edgelist' , 'r' ) except IOError : print 'lanl.edges not found' raise G = nx . Graph ( ) time = { } time [ 0 ] = 0 for line in fh . readlines ( ) : ( head , tail , rtt ) = line . split ( ) G . add_edge ( int ( head ) , int ( tail ) ) time [ int ( head ) ] = float ( rtt ) G0 = sorted ( nx . connected_component_subgraphs ( G ) , key = len , reverse = True ) [ 0 ] G0 . rtt = { } for n in G0 : G0 . rtt [ n ] = time [ n ] return G0
return the lanl internet view graph from lanl .