Implemented constant num_edges() for undirected graphs by maintaing a separate size count for the property list.