CXXGraph
CXXGraph copied to clipboard
CXXGraph::Graph object to have symmetry (parity) in signature for (add, remove) x (nodes, edges)
trafficstars
Problem I would like to edit the graph object in an algorithm flow; however the asymmetry in the code makes it hard since removeEdge works on id_t, and removeNode works on UserId std::string. Add node and edge are also asymmetrical in their argument.
Describe the solution you'd like We need both add node/edge to operate on id_t, and remove node/edge to operate on id_t; We need both add node/edge to operate on node userId, and remove node/edge to operate on node userId_t;
Describe alternatives you've considered Embarrassing alternatives; I'd not mention :(
Additional context NA
Perfect, I think is correct, you can work on this @ai-mannamalai