SOLA
Loading...
Searching...
No Matches
weighted_directed_graph.h
1// Copyright 2023 The SOLA authors
2//
3// This file is part of DAISI.
4//
5// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6// General Public License as published by the Free Software Foundation; version 2.
7//
8// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10// Public License for more details.
11//
12// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13// <https://www.gnu.org/licenses/>.
14//
15// SPDX-License-Identifier: GPL-2.0-only
16
17#ifndef DAISI_DATASTRUCTURE_WEIGHTED_DIRECTED_GRAPH_H_
18#define DAISI_DATASTRUCTURE_WEIGHTED_DIRECTED_GRAPH_H_
19
20#include "directed_graph.tpp"
21
22namespace daisi::datastructure {
23
24template <typename Vertex, typename Edge>
25class WeightedDirectedGraph : public DirectedGraph<Vertex, Edge> {
26public:
27 WeightedDirectedGraph() = default;
28
29 std::vector<std::vector<double>> getWeightMatrix() const;
30 std::vector<std::vector<double>> floydWarshall() const;
31};
32
33} // namespace daisi::datastructure
34
35#endif
Definition directed_graph.h:27
Definition weighted_directed_graph.h:25