diff options
Diffstat (limited to 'src/data/path.h')
-rw-r--r-- | src/data/path.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/data/path.h b/src/data/path.h new file mode 100644 index 0000000..3c83170 --- /dev/null +++ b/src/data/path.h @@ -0,0 +1,25 @@ +#ifndef PATH_H +#define PATH_H + +#include "edge.h" + +#include <QObject> + +class Path : public QObject +{ + Q_OBJECT +public: + explicit Path(QObject *parent = nullptr); + int length() const; + void addEdge(Edge *e); + void removeEdges(); + bool isCycle() const; + + QVector<Edge *> edges() const; + +private: + QVector<Edge*> _edges; + +}; + +#endif // PATH_H |