26 lines
355 B
C++
26 lines
355 B
C++
#ifndef DIGRAPH_H_
|
|
#define DIGRAPH_H_
|
|
|
|
#include "graph.h"
|
|
|
|
#include <algorithm>
|
|
|
|
namespace graph {
|
|
|
|
template<typename T>
|
|
class Digraph : public Graph<T> {
|
|
public:
|
|
Digraph() = default;
|
|
|
|
// Reverse graph directions
|
|
Digraph<T> reverse();
|
|
};
|
|
|
|
template<typename T>
|
|
Digraph<T> Digraph<T>::reverse() {
|
|
return Digraph<T>();
|
|
}
|
|
|
|
} // namespace graph
|
|
|
|
#endif |