@@ -90,7 +90,7 @@ namespace CXXGRAPH
90
90
public:
91
91
Graph () = default ;
92
92
Graph (const std::list<const Edge<T> *> &edgeSet);
93
- ~Graph () = default ;
93
+ virtual ~Graph () = default ;
94
94
/* *
95
95
* \brief
96
96
* Function that return the Edge set of the Graph
@@ -160,7 +160,7 @@ namespace CXXGRAPH
160
160
* @return parent node of elem
161
161
* Note: No Thread Safe
162
162
*/
163
- virtual const unsigned long setFind (std::vector<Subset>*, const unsigned long elem) const ;
163
+ virtual unsigned long setFind (std::vector<Subset>*, const unsigned long elem) const ;
164
164
/* *
165
165
* @brief This function modifies the original subset array
166
166
* such that it the union of two sets a and b
@@ -936,7 +936,7 @@ namespace CXXGRAPH
936
936
}
937
937
938
938
template <typename T>
939
- const unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
939
+ unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
940
940
{
941
941
// find root and make root as parent of i
942
942
// (path compression)
@@ -2087,7 +2087,7 @@ namespace CXXGRAPH
2087
2087
}
2088
2088
if (result == 0 && compress)
2089
2089
{
2090
- auto compress = [this , &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
2090
+ auto _compress = [this , &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
2091
2091
{
2092
2092
std::string completePathToFileGraph = workingDir + " /" + OFileName + extension;
2093
2093
std::string completePathToFileGraphCompressed = workingDir + " /" + OFileName + extension + " .gz" ;
@@ -2126,11 +2126,11 @@ namespace CXXGRAPH
2126
2126
};
2127
2127
if (format == InputOutputFormat::STANDARD_CSV)
2128
2128
{
2129
- auto result = compress (" .csv" );
2129
+ auto result = _compress (" .csv" );
2130
2130
}
2131
2131
else if (format == InputOutputFormat::STANDARD_TSV)
2132
2132
{
2133
- auto result = compress (" .tsv" );
2133
+ auto result = _compress (" .tsv" );
2134
2134
}
2135
2135
else
2136
2136
{
@@ -2296,4 +2296,4 @@ namespace CXXGRAPH
2296
2296
}
2297
2297
2298
2298
} // namespace CXXGRAPH
2299
- #endif // __CXXGRAPH_GRAPH_H__
2299
+ #endif // __CXXGRAPH_GRAPH_H__
0 commit comments