forked from OSchip/llvm-project
[PBQP] Constify Graph::getEdgeNode1Id and Graph::getEdgeNode2Id
llvm-svn: 228048
This commit is contained in:
parent
46cd4f7400
commit
1f4448ad51
|
@ -548,14 +548,14 @@ namespace PBQP {
|
|||
/// @brief Get the first node connected to this edge.
|
||||
/// @param EId Edge id.
|
||||
/// @return The first node connected to the given edge.
|
||||
NodeId getEdgeNode1Id(EdgeId EId) {
|
||||
NodeId getEdgeNode1Id(EdgeId EId) const {
|
||||
return getEdge(EId).getN1Id();
|
||||
}
|
||||
|
||||
/// @brief Get the second node connected to this edge.
|
||||
/// @param EId Edge id.
|
||||
/// @return The second node connected to the given edge.
|
||||
NodeId getEdgeNode2Id(EdgeId EId) {
|
||||
NodeId getEdgeNode2Id(EdgeId EId) const {
|
||||
return getEdge(EId).getN2Id();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue