// Copyright 2016, University of Freiburg, // Chair of Algorithms and Data Structures. // Authors: Patrick Brosi #ifndef UTIL_GRAPH_EDGE_H_ #define UTIL_GRAPH_EDGE_H_ #include #include "util/graph/Node.h" namespace util { namespace graph { template class Edge { public: Edge(Node* from, Node* to, const E& pl); Node* getFrom() const; Node* getTo() const; Node* getOtherNd(const Node* notNode) const; void setFrom(Node* from); void setTo(Node* to); E& pl(); const E& pl() const; private: Node* _from; Node* _to; E _pl; }; #include "util/graph/Edge.tpp" }} #endif // UTIL_GRAPH_EDGE_H_