@open_file(0, mode='rt')
def read_sparse6(path):
 glist = []
 for line in path:
  line = line.strip()
  if (not len(line)):
   continue
  glist.append(parse_sparse6(line))
 if (len(glist) == 1):
  return glist[0]
 else:
  return glist

@ open_file ( 0 , mode = 'rt' ) def read_sparse6 ( path ) : glist = [ ] for line in path : line = line . strip ( ) if ( not len ( line ) ) : continue glist . append ( parse_sparse6 ( line ) ) if ( len ( glist ) == 1 ) : return glist [ 0 ] else : return glist
read an undirected graph in sparse6 format from path .