I am supposed to see whether an object of a class (not Object class) is already in vector containing some objects of same class.
I have a class "Edge" having a sourceNode and targetNode.
I am storing the instances of this class in an vector but before storing I need to know whether the new instance already exists in the vector or not?(edge with same source and target node)
Can anyone let me know how can i do it?