You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
There are cases when the approach of first creating all nodes and then finding a path through them is not ideal, e.g. when the possible number of nodes is so large that they do not all fit in memory. Instead, nodes can be created programmatically. That is, a new type of node implementing the node interfaces (cf. #19) can be created whose Connections method then provides all nodes. There is one major challenge here: currently, nodes are identified uniquely via pointers to them. When programmatically creating neighbouring nodes, some other means of uniquely ID'ing nodes is required. Suggestion: require unique names that follow some scheme, or require some hashing function that generates an ID based on a node. Implementing this without generics can be tricky. With generics, the ID type can be specified by the user as long as the ID method returns data of that type. Maybe wait until go 1.18 has been released to employ generics.
There are cases when the approach of first creating all nodes and then finding a path through them is not ideal, e.g. when the possible number of nodes is so large that they do not all fit in memory. Instead, nodes can be created programmatically. That is, a new type of node implementing the node interfaces (cf. #19) can be created whose
Connections
method then provides all nodes. There is one major challenge here: currently, nodes are identified uniquely via pointers to them. When programmatically creating neighbouring nodes, some other means of uniquely ID'ing nodes is required. Suggestion: require unique names that follow some scheme, or require some hashing function that generates an ID based on a node. Implementing this without generics can be tricky. With generics, the ID type can be specified by the user as long as the ID method returns data of that type. Maybe wait until go 1.18 has been released to employ generics.Requires these:
The text was updated successfully, but these errors were encountered: