Skip to content

Commit

Permalink
Removed Alert of LGTM for Graph.hpp (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigRazor authored Oct 21, 2021
1 parent c80ec1d commit 6fb620a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/Graph/Graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace CXXGRAPH
public:
Graph() = default;
Graph(const std::list<const Edge<T> *> &edgeSet);
~Graph() = default;
virtual ~Graph() = default;
/**
* \brief
* Function that return the Edge set of the Graph
Expand Down Expand Up @@ -160,7 +160,7 @@ namespace CXXGRAPH
* @return parent node of elem
* Note: No Thread Safe
*/
virtual const unsigned long setFind(std::vector<Subset>*, const unsigned long elem) const;
virtual unsigned long setFind(std::vector<Subset>*, const unsigned long elem) const;
/**
* @brief This function modifies the original subset array
* such that it the union of two sets a and b
Expand Down Expand Up @@ -936,7 +936,7 @@ namespace CXXGRAPH
}

template <typename T>
const unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
unsigned long Graph<T>::setFind(std::vector<Subset> *subsets, const unsigned long nodeId) const
{
// find root and make root as parent of i
// (path compression)
Expand Down Expand Up @@ -2087,7 +2087,7 @@ namespace CXXGRAPH
}
if (result == 0 && compress)
{
auto compress = [this, &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
auto _compress = [this, &workingDir, &OFileName, &writeNodeFeat, &writeEdgeWeight](const std::string &extension)
{
std::string completePathToFileGraph = workingDir + "/" + OFileName + extension;
std::string completePathToFileGraphCompressed = workingDir + "/" + OFileName + extension + ".gz";
Expand Down Expand Up @@ -2126,11 +2126,11 @@ namespace CXXGRAPH
};
if (format == InputOutputFormat::STANDARD_CSV)
{
auto result = compress(".csv");
auto result = _compress(".csv");
}
else if (format == InputOutputFormat::STANDARD_TSV)
{
auto result = compress(".tsv");
auto result = _compress(".tsv");
}
else
{
Expand Down Expand Up @@ -2296,4 +2296,4 @@ namespace CXXGRAPH
}

} // namespace CXXGRAPH
#endif // __CXXGRAPH_GRAPH_H__
#endif // __CXXGRAPH_GRAPH_H__

0 comments on commit 6fb620a

Please sign in to comment.