def n_to_data(n):
 if (n < 0):
  raise NetworkXError('Numbers in graph6 format must be non-negative.')
 if (n <= 62):
  return [n]
 if (n <= 258047):
  return [63, ((n >> 12) & 63), ((n >> 6) & 63), (n & 63)]
 if (n <= 68719476735):
  return [63, 63, ((n >> 30) & 63), ((n >> 24) & 63), ((n >> 18) & 63), ((n >> 12) & 63), ((n >> 6) & 63), (n & 63)]
 raise NetworkXError('Numbers above 68719476735 are not supported by graph6')

def n_to_data ( n ) : if ( n < 0 ) : raise NetworkXError ( 'Numbers in graph6 format must be non-negative.' ) if ( n <= 62 ) : return [ n ] if ( n <= 258047 ) : return [ 63 , ( ( n >> 12 ) & 63 ) , ( ( n >> 6 ) & 63 ) , ( n & 63 ) ] if ( n <= 68719476735 ) : return [ 63 , 63 , ( ( n >> 30 ) & 63 ) , ( ( n >> 24 ) & 63 ) , ( ( n >> 18 ) & 63 ) , ( ( n >> 12 ) & 63 ) , ( ( n >> 6 ) & 63 ) , ( n & 63 ) ] raise NetworkXError ( 'Numbers above 68719476735 are not supported by graph6' )
convert an integer to one- .