Unable to load image

Day 12

Post code, nerds.

14
Jump in the discussion.

No email address required.

spent first 15 or so mins looking up how to use a graph library

then i spent forever trying to debug a problem where it told me the positions i was giving to shortest_path were not in my graph. this is because i accidentally gave it the matrix instead, but it didnt even tell me i wasn't giving it a graph :marseydespair: no type checking is cancer

after that i spent a while getting destroyed by my edge construction being if-elif instead of pure if like it's supposed to be

![](/images/167082667871127.webp)

Jump in the discussion.

No email address required.

TLM =

just say list(...) btw

Also apparently networkx has multi_source_dijkstra though I use my own implementation.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.