original_docstring: Make a CSP for the problem of coloring a map with different colors
      for any two adjacent regions. Arguments are a list of colors, and a
      dict of {region: [neighbor,...]} entries. This dict may also be
      specified as a string of the form defined by parse_neighbors.
docstring: Make a CSP for the problem of coloring a map with different colors
  for any two adjacent regions. Arguments are a list of colors, and a
  dict of {region: [neighbor,...]} entries. This dict may also be
  specified as a string of the form defined by parse_neighbors.
docstring_tokens: Make a CSP for the problem of coloring a map with different colors for any two adjacent regions . Arguments are a list of colors and a dict of { region : [ neighbor ... ] } entries . This dict may also be specified as a string of the form defined by parse_neighbors .
code: def MapColoringCSP(colors, neighbors):
      """Make a CSP for the problem of coloring a map with different colors
      for any two adjacent regions. Arguments are a list of colors, and a
      dict of {region: [neighbor,...]} entries. This dict may also be
      specified as a string of the form defined by parse_neighbors."""
      if isinstance(neighbors, str):
          neighbors = AIMAcsp.parse_neighbors(neighbors)
      return TUMCSP(list(neighbors.keys()), AIMAcsp.UniversalDict(colors), neighbors,
                 AIMAcsp.different_values_constraint)
code_tokens: def MapColoringCSP ( colors , neighbors ) : if isinstance ( neighbors , str ) : neighbors = AIMAcsp . parse_neighbors ( neighbors ) return TUMCSP ( list ( neighbors . keys ( ) ) , AIMAcsp . UniversalDict ( colors ) , neighbors , AIMAcsp . different_values_constraint )
short_docstring: Make a CSP for the problem of coloring a map with different colors
  for any two adjacent regions.
short_docstring_tokens: Make a CSP for the problem of coloring a map with different colors for any two adjacent regions .
comment: """Make a CSP for the problem of coloring a map with different colors
      for any two adjacent regions. Arguments are a list of colors, and a
      dict of {region: [neighbor,...]} entries. This dict may also be
      specified as a string of the form defined by parse_neighbors."""