def run():
    print("xz")
@@ -1,26 +1,755 @@
-def run():%0A   
+import networkx as nx%0A%0A%0Adef run():%0A    # x = input('Enter the graph in the format: AD4, DE1, EC8, ...%5Cn')%0A    #
  print(
+x + 
 %22x
-z
+d
 %22)
+%0A%0A    edges = %5B('a', 'd', 4), ('d', 'e', 1), ('e', 'c', 8), ('c', 'b', 2), ('b', 'a', 6), ('a', 'c', 9), ('d', 'f', 7),%0A             ('f', 'c', 5), ('f', 'e', 9), ('b', 'd', 3), ('f', 'a', 3)%5D%0A%0A    customers_routes = nx.DiGraph()%0A    customers_routes.add_weighted_edges_from(edges)%0A%0A    print(customers_routes.get_edge_data('a', 'd')%5B'weight'%5D + customers_routes.get_edge_data('d', 'e')%5B'weight'%5D)%0A    print(customers_routes.get_edge_data('a', 'f')%5B'weight'%5D + customers_routes.get_edge_data('f', 'e')%5B'weight'%5D)%0A    print(customers_routes.get_edge_data('e', 'c')%5B'weight'%5D + customers_routes.get_edge_data('c', 'b')%5B'weight'%5D)%0A

first output