Update graph.h

change comment for  Graph::FindEdgeId method.
This commit is contained in:
zmx 2020-09-29 05:54:07 +08:00 committed by GitHub
parent 7679280cbd
commit 486c1e62f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,9 +617,9 @@ class Graph {
int num_edge_ids() const { return edges_.size(); }
// Returns the Edge associated with an id, or nullptr if no edge
// with that id (the node with that id was removed and the id has
// with that id (the edge with that id was removed and the id has
// not yet been re-used). *this owns the returned instance.
// REQUIRES: 0 <= id < num_node_ids().
// REQUIRES: 0 <= id < num_edge_ids().
const Edge* FindEdgeId(int id) const { return edges_[id]; }
// Access to the set of all edges. Example usage: