
lowercase__				:				Optional[Any]						=      {hex(i)[2:]: i for i in range(1_6)}  # Use [:2] to strip off the leading '0x'




def 						A_			(				snake_case				: str			)   ->     int:



						'''simple docstring'''

						__UpperCamelCase  	=      hex_string.strip().lower()
						if not hex_string:
												raise ValueError('''Empty string was passed to the function'''			)
						__UpperCamelCase  	=      hex_string[0] == '''-'''
						if is_negative:
												__UpperCamelCase  	=      hex_string[1:]
						if not all(char in hex_table for char in hex_string			):
												raise ValueError('''Non-hexadecimal value was passed to the function'''			)
						__UpperCamelCase  	=      0
						for char in hex_string:
												__UpperCamelCase  	=      16 * decimal_number + hex_table[char]
						return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
				from doctest import testmod

				testmod()












__lowerCamelCase						= {0: [1, 2], 1: [0, 3], 2: [0], 3: [1], 4: [5, 6], 5: [4, 6], 6: [4, 5]}

__lowerCamelCase						= {0: [1, 2, 3], 1: [0, 3], 2: [0], 3: [0, 1], 4: [], 5: []}






def    UpperCamelCase__  (   UpperCAmelCase    ,	UpperCAmelCase    ,	UpperCAmelCase     )     ->		list:







							"""simple docstring"""





							_a  :    List[Any]			=						True
							_a  :    Optional[Any]			=						[]

							for neighbour in graph[vert]:
														if not visited[neighbour]:
																					connected_verts += dfs(UpperCAmelCase    ,	UpperCAmelCase    ,	UpperCAmelCase     )

							return [vert, *connected_verts]






def    UpperCamelCase__  (   UpperCAmelCase     )     ->		list:







							"""simple docstring"""





							_a  :    Optional[int]			=						len(UpperCAmelCase     )
							_a  :    Optional[Any]			=						graph_size * [False]
							_a  :    Optional[int]			=						[]

							for i in range(UpperCAmelCase     ):
														if not visited[i]:
																					_a  :    List[str]			=						dfs(UpperCAmelCase    ,	UpperCAmelCase    ,	UpperCAmelCase     )
																					components_list.append(UpperCAmelCase     )

							return components_list


if __name__ == "__main__":
						import doctest

						doctest.testmod()