def is_pseudographical(sequence):
 s = list(sequence)
 if (not nx.utils.is_list_of_ints(s)):
  return False
 return (((sum(s) % 2) == 0) and (min(s) >= 0))

def is_pseudographical ( sequence ) : s = list ( sequence ) if ( not nx . utils . is_list_of_ints ( s ) ) : return False return ( ( ( sum ( s ) % 2 ) == 0 ) and ( min ( s ) >= 0 ) )
returns true if some pseudograph can realize the sequence .