Thanks for starting to work on this! Since the last version, JSNetworkX supports keys of any data types, so you shouldn't use plain objects here. Have a look at https://github.com/fkling/JSNetworkX/blob/master/jsnx/algorithms/shortest_paths/unweighted.js#L29 for example.