Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
War also wohl dieses Mal tatsächlich einfacher, hatte ich mit meinem subjektivem Eindruck rechtEs hat bereits jemand das Rätsel komplett gelöst


Ich kann dir aber 'n Lösungsweg anzeigen. Nicht das ich den verstehen würde... 
import networkx as nx
G = nx.Graph()
j = -1
with open("Daten_Pirat.txt") as i:
for line in i:
line = line.rstrip()
if not line:
continue
j += 1
k = -1
for x in map(int, line.split(' ')):
k += 1
if not x:
continue
G.add_weighted_edges_from([(j, k, x)])
path = nx.shortest_path(G,source=0, target=999, weight='weight')
weight = nx.shortest_path_length(G,source=0, target=999, weight='weight')
print("{0}; {1}".format(", ".join(map(str, path)), weight))
Da wird gemeinsam gerätselt, wie auch in den Jahren zuvor schon.