Skip to content

Commit

Permalink
Making APIs consistent for graph/Edge
Browse files Browse the repository at this point in the history
fix gazebosim#301

Signed-off-by: Akshat Pandya <[email protected]>
  • Loading branch information
akshatpandya committed Dec 24, 2021
1 parent 98187e7 commit d9d9c9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ignition/math/graph/Edge.hh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace graph

/// \brief Set the cost of the edge.
/// \param[in] _newWeight The new cost.
public: void SetWeight(const double _newWeight)
public: void SetWeight(double _newWeight)
{
this->weight = _newWeight;
}
Expand Down Expand Up @@ -214,7 +214,7 @@ namespace graph
/// \param[in] _id Optional unique id.
public: explicit UndirectedEdge(const VertexId_P &_vertices,
const E &_data,
const double _weight,
double _weight,
const EdgeId &_id = kNullId)
: Edge<E>(_vertices, _data, _weight, _id)
{
Expand Down Expand Up @@ -277,7 +277,7 @@ namespace graph
/// \param[in] _id Optional unique id.
public: explicit DirectedEdge(const VertexId_P &_vertices,
const E &_data,
const double _weight,
double _weight,
const EdgeId &_id = kNullId)
: Edge<E>(_vertices, _data, _weight, _id)
{
Expand Down

0 comments on commit d9d9c9b

Please sign in to comment.