important bug fix for id(due to copy constructor, ineq  function for node and edge and eq comp for graph