You paper is fascinating. I try to run your program, I guess, without SAS Viya. The part with:
links = mycas.placesdist
out_nodes = mycas.placesnodes;

causes an error because I don't have access to mycas, or, I guess gain, tools in Cloud.
Could you provide a helpful tip or two. Thank you.

Akira Kondo