Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Alert of LGTM for Graph.hpp #142

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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__