Skip to content

Commit 17dbb50

Browse files
committed
Update Weight to Double
1 parent db95088 commit 17dbb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Simulator/Utils/GraphManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ template <typename VertexProperties> class GraphManager {
112112
/// @brief Retrieves the weight of an edge
113113
/// @param edge the EdgeDescriptor
114114
/// @return the weight of the given edge
115-
size_t weight(const EdgeDescriptor &edge) const;
115+
double weight(const EdgeDescriptor &edge) const;
116116

117117
/// @brief Direct access to the VertexProperties of a vertex descriptor
118118
/// @param vertex the vertex descriptor (index)
@@ -241,7 +241,7 @@ size_t GraphManager<VertexProperties>::target(
241241
/// @param edge the EdgeDescriptor
242242
/// @return the weight of the given edge
243243
template <typename VertexProperties>
244-
size_t GraphManager<VertexProperties>::weight(
244+
double GraphManager<VertexProperties>::weight(
245245
const typename GraphManager<VertexProperties>::EdgeDescriptor &edge) const
246246
{
247247
return boost::get(&NeuralEdgeProperties::weight, graph_, edge);

0 commit comments

Comments
 (0)