Skip to content

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

@ai-mannamalai

Description

@ai-mannamalai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:MediumPriority Label for medium priority issuedevelopmentDevelopment of new FunctionalitiesenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions