From d0ee6ba65c2da1bf642a9402ca4cc7f8f05bfb5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl>
Date: Wed, 16 Nov 2011 09:05:46 +0100
Subject: [PATCH] Accessor for relation name

---
 libcorpus2/relation.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libcorpus2/relation.h b/libcorpus2/relation.h
index 4a0f2b2..21cce25 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_;
-- 
GitLab