def words_graph():
 import gzip
 fh = gzip.open('words_dat.txt.gz', 'r')
 words = set()
 for line in fh.readlines():
  line = line.decode()
  if line.startswith('*'):
   continue
  w = str(line[0:5])
  words.add(w)
 return generate_graph(words)

def words_graph ( ) : import gzip fh = gzip . open ( 'words_dat.txt.gz' , 'r' ) words = set ( ) for line in fh . readlines ( ) : line = line . decode ( ) if line . startswith ( '*' ) : continue w = str ( line [ 0 : 5 ] ) words . add ( w ) return generate_graph ( words )
return the words example graph from the stanford graphbase .