
'''simple docstring'''






A			      =      8.314462  # Unit - J mol-1 K-1





def    UpperCAmelCase							(  UpperCAmelCase__							:							float       ,							UpperCAmelCase__							:							float       ,							UpperCAmelCase__							:							float):
				if moles < 0 or kelvin < 0 or volume < 0:
								raise ValueError('Invalid inputs. Enter positive value.')
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume





def    UpperCAmelCase							(  UpperCAmelCase__							:							float       ,							UpperCAmelCase__							:							float       ,							UpperCAmelCase__							:							float):
				if moles < 0 or kelvin < 0 or pressure < 0:
								raise ValueError('Invalid inputs. Enter positive value.')
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


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

					testmod()


'''simple docstring'''






A			      =      {'a': ['c', 'b'], 'b': ['d', 'e'], 'c': [], 'd': [], 'e': []}
A			      =      ['a', 'b', 'c', 'd', 'e']





def    UpperCAmelCase							(  UpperCAmelCase__							:							Union[str, Any]       ,							UpperCAmelCase__							:							Any       ,							UpperCAmelCase__							:							List[Any]):
				lowerCamelCase					:			List[Any]									= start
				# add current to visited
				visited.append(UpperCAmelCase__)
				lowerCamelCase					:			List[str]									= edges[current]
				for neighbor in neighbors:
								# if neighbor not in visited, visit
								if neighbor not in visited:
												lowerCamelCase					:			Any									= topological_sort(UpperCAmelCase__       ,							UpperCAmelCase__       ,							UpperCAmelCase__)
    # if all neighbors visited add current to sort
				sort.append(UpperCAmelCase__)
				# if all vertices haven't been visited select a new one to visit
				if len(UpperCAmelCase__) != len(UpperCAmelCase__):
								for vertice in vertices:
												if vertice not in visited:
																lowerCamelCase					:			List[str]									= topological_sort(UpperCAmelCase__       ,							UpperCAmelCase__       ,							UpperCAmelCase__)
    # return sort
				return sort


if __name__ == "__main__":
					A			      =      topological_sort('a', [], [])
					print(sort)
