mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
[PBQP] Constify Graph::getEdgeNode1Id and Graph::getEdgeNode2Id
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d04e48cb6
commit
85829ef385
@ -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
Block a user