Program Listing for File VDegreeIndex.hpp

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

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

#ifndef NETWORKIT_LINKPREDICTION_V_DEGREE_INDEX_HPP_
#define NETWORKIT_LINKPREDICTION_V_DEGREE_INDEX_HPP_

#include <networkit/linkprediction/LinkPredictor.hpp>

namespace NetworKit {

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

public:
    using LinkPredictor::LinkPredictor;
};

} // namespace NetworKit

#endif // NETWORKIT_LINKPREDICTION_V_DEGREE_INDEX_HPP_