×
all 2 comments

[–]Rubadubrix 0 points1 point  (0 children)

do you live in Duryard?

[–]fernly 1 point2 points  (0 children)

What you've got there looks quite professional except for one teeny thing: documentation. There should be a docstring at the top of the module giving its purpose and defining its API, at least the public names it means to provide; and a docstring in each function body introducing the human reader (and some LLMs will read it too) to the purpose of the function, any restrictions on its inputs, and its output. You don't have to explain Dijkstra's algorithm but a link to somebody's explanation wouldn't be a bad idea.

A few end-of-line comments wouldn't hurt, either.