Update graph.h
change comment for Graph::FindEdgeId method.
This commit is contained in:
parent
7679280cbd
commit
486c1e62f2
@ -617,9 +617,9 @@ class Graph {
|
|||||||
int num_edge_ids() const { return edges_.size(); }
|
int num_edge_ids() const { return edges_.size(); }
|
||||||
|
|
||||||
// Returns the Edge associated with an id, or nullptr if no edge
|
// 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.
|
// 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]; }
|
const Edge* FindEdgeId(int id) const { return edges_[id]; }
|
||||||
|
|
||||||
// Access to the set of all edges. Example usage:
|
// Access to the set of all edges. Example usage:
|
||||||
|
Loading…
Reference in New Issue
Block a user