class_docstr: A collection of Nodes representing an NFA or DFA.
docstr: Add a new state to the machine and return it.
code: def new_state(self):
      """Add a new state to the machine and return it."""
      s = Node()
      n = self.next_state_number
      self.next_state_number = n + 1
      s.number = n
      self.states.append(s)
      return s
  
imports: from __future__ import absolute_import
  import sys
  from .Transitions import TransitionMap
label_desc: Use image node_id 3 for calling the Machine obj's underlying member method code with example usage: obj.new_state() and returns: s