diff --git a/libcorpus2/relation.h b/libcorpus2/relation.h index 4a0f2b235c6d9c9d7a61dd5a3256c155e54f3784..21cce25e73e0bc868ca856f3a311be576a137184 100644 --- a/libcorpus2/relation.h +++ b/libcorpus2/relation.h @@ -93,6 +93,11 @@ public: return to_; } + /// Accessor to name of the relation + const std::string name() const { + return name_; + } + private: /// Direction name const std::string& name_;