// Copyright 2016, University of Freiburg, // Chair of Algorithms and Data Structures. // Authors: Patrick Brosi // _____________________________________________________________________________ template Edge::Edge(Node* from, Node* to, const E& pl) : _from(from), _to(to), _pl(pl) { } // _____________________________________________________________________________ template Node* Edge::getFrom() const { return _from; } // _____________________________________________________________________________ template Node* Edge::getTo() const { return _to; } // _____________________________________________________________________________ template Node* Edge::getOtherNd(const Node* notNode) const { if (_to == notNode) return _from; return _to; } // _____________________________________________________________________________ template E& Edge::pl() { return _pl; } // _____________________________________________________________________________ template const E& Edge::pl() const { return _pl; }