Program Listing for File EdgeScoreAsWeight.hpp

↰ Return to documentation for file (include/networkit/edgescores/EdgeScoreAsWeight.hpp)

/*
 * EdgeScoreAsWeight.hpp
 *
 *  Created on: 18.11.2014
 *      Author: Michael Hamann
 */

#ifndef NETWORKIT_EDGESCORES_EDGE_SCORE_AS_WEIGHT_HPP_
#define NETWORKIT_EDGESCORES_EDGE_SCORE_AS_WEIGHT_HPP_

#include <tlx/define/deprecated.hpp>
#include <networkit/graph/Graph.hpp>

namespace NetworKit {

class EdgeScoreAsWeight final {

public:
    // Please note this class EdgeScoreAsWeight is deprecated and will be removed in future releases
    TLX_DEPRECATED(EdgeScoreAsWeight(const Graph &G, const std::vector<double> &score,
                                     bool squared = false, edgeweight offset = 1,
                                     edgeweight factor = 1));
    TLX_DEPRECATED(Graph calculate());

private:
    const Graph *G;
    const std::vector<double> *score;
    bool squared;
    edgeweight offset;
    edgeweight factor;
};

} // namespace NetworKit

#endif // NETWORKIT_EDGESCORES_EDGE_SCORE_AS_WEIGHT_HPP_