Replies: 5 comments 12 replies
-
Is a good idea, but how do you think to generalize this? Maybe is more useful to provide an interface where the Graph class decide the id of the node and of the edge map with the original one, but how we can manage the duplicate? I think the name of a node can be an attribute of the data contained in the node. Another idea is to let the user the possibilibily to get a free id for the node, with only the graph that will contains it. I think we should do more brainstorming on this! |
Beta Was this translation helpful? Give feedback.
-
BTW the reason I proposed supporting this is because I noticed that people are using string names on this dataset. Many other datasets are available here. |
Beta Was this translation helpful? Give feedback.
-
ok, i think we can add this features for this kind of graph, can you develop this? If you are OK with these things I set a milestone for this, and we can start open the first issue for the implementation. |
Beta Was this translation helpful? Give feedback.
-
I open the Issue for this discussion |
Beta Was this translation helpful? Give feedback.
-
@ZigRazor
So, I was thinking whenever we output the result to the user (when algorithm result contains node id) we should use |
Beta Was this translation helpful? Give feedback.
-
In the current codebase, we are making an implicit assumption that the user supplied id will be
unsigned long
. However, this mayn't be always true because the user may want to use strings as user-ids for convenience.@ZigRazor What do you think about extending support to arbitrary ids ?
One possible way to accomplish this can be to map the user given ids to an internal unsigned long representation & do the processing. While returning the result, we can again translate it to the user id.
Beta Was this translation helpful? Give feedback.
All reactions