class cv::detail::Graph

#include <util.hpp>

class Graph
{
public:
    // construction

    Graph(int num_vertices = 0);

    // methods

    void
    addEdge(
        int from,
        int to,
        float weight
        );

    void
    create(int num_vertices);

    template <typename B>
    B
    forEach(B body) const;

    int
    numVertices() const;

    template <typename B>
    B
    walkBreadthFirst(
        int from,
        B body
        ) const;
};