#NEWLINE# def graph6data( str ) : #NEWLINE# #INDENT# 'Convert graph6 character sequence to 6-bit integers.' #NEWLINE# v = [ ( ord ( c ) - 63 ) for c in str ] #NEWLINE# if ( ( min ( v ) < 0 ) or ( max ( v ) > 63 ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return v