Program Listing for File UDegreeIndex.hpp

Return to documentation for file (include/networkit/linkprediction/UDegreeIndex.hpp)

/*
 * UDegreeIndex.hpp
 *
 *  Created on: 01.04.2015
 *      Author: Kolja Esders
 */

#ifndef NETWORKIT_LINKPREDICTION_U_DEGREE_INDEX_HPP_
#define NETWORKIT_LINKPREDICTION_U_DEGREE_INDEX_HPP_

#include <networkit/linkprediction/LinkPredictor.hpp>

namespace NetworKit {

class UDegreeIndex final : public LinkPredictor {
    double runImpl(node u, node) override { return G->degree(u); }

public:
    using LinkPredictor::LinkPredictor;
};

} // namespace NetworKit

#endif // NETWORKIT_LINKPREDICTION_U_DEGREE_INDEX_HPP_