4 #include "../structures/Graph.hpp"
15 template <
class Graph>
28 #endif // GL_DEGREES_HPP
std::vector< idx_t > idx_list_t
Index List type.
Definition: Graph.hpp:48
gl::index_type idx_t
Index type.
Definition: Graph.hpp:44
Stores and implements a Graph.
Definition: Graph.hpp:39
Graph::idx_list_t degrees(const Graph &graph)
Computes the out-degrees of all nodes in a graph.
Definition: Degrees.hpp:16
idx_t numNodes() const
Returns the number of nodes currently in the graph.
Definition: Graph.hpp:406
idx_t getNodeDegree(const idx_t &id) const
Finds the degree of the given node (i.e. count of all in- & outgoing edges).
Definition: Graph.hpp:1285