
from collections import defaultdict

from graphs.minimum_spanning_tree_prims import prisms_algorithm as mst


def       A       (					)   ->  Optional[Any]:
		'''simple docstring'''

		UpperCamelCase	,  UpperCamelCase		=     9, 14  # noqa: F841
		UpperCamelCase		=     [
		    [0, 1, 4],
		    [0, 7, 8],
		    [1, 2, 8],
		    [7, 8, 7],
		    [7, 6, 1],
		    [2, 8, 2],
		    [8, 6, 6],
		    [2, 3, 7],
		    [2, 5, 4],
		    [6, 5, 2],
		    [3, 5, 14],
		    [3, 4, 9],
		    [5, 4, 10],
		    [1, 7, 11],
		]

		UpperCamelCase		=     defaultdict(lowercase )
		for nodea, nodea, cost in edges:
				adjancency[nodea].append([nodea, cost] )
				adjancency[nodea].append([nodea, cost] )

		UpperCamelCase		=     mst(lowercase )

		UpperCamelCase		=     [
		    [7, 6, 1],
		    [2, 8, 2],
		    [6, 5, 2],
		    [0, 1, 4],
		    [2, 5, 4],
		    [2, 3, 7],
		    [0, 7, 8],
		    [3, 4, 9],
		]

		for answer in expected:
				UpperCamelCase		=     tuple(answer[:2] )
				UpperCamelCase		=     tuple(edge[::-1] )
				assert edge in result or reverse in result


import requests


def       A       (					lowercase    ,       lowercase )   ->  None:
		'''simple docstring'''

		UpperCamelCase		=     {'Content-Type': 'application/json'}
		UpperCamelCase		=     requests.post(lowercase    ,       json={'text': message_body}    ,       headers=lowercase )
		if response.status_code != 200:
				UpperCamelCase		=     (
				    'Request to slack returned an error '
				    f'''{response.status_code}, the response is:\n{response.text}'''
				)
				raise ValueError(lowercase )


if __name__ == "__main__":
					# Set the slack url to the one provided by Slack when you create the webhook at
					# https://my.slack.com/services/new/incoming-webhook/
					send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")
