CXXGraph icon indicating copy to clipboard operation
CXXGraph copied to clipboard

CXXGraph::Graph object to have symmetry (parity) in signature for (add, remove) x (nodes, edges)

Open ai-mannamalai opened this issue 6 months ago • 1 comments
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

ai-mannamalai avatar May 13 '25 18:05 ai-mannamalai

Perfect, I think is correct, you can work on this @ai-mannamalai

ZigRazor avatar May 15 '25 07:05 ZigRazor