Add __repr__ to label.
@@ -24,6 +24,9 @@ class _VertexLabel(JavaObjectWrapper):
def __hash__(self) -> int:
return hash(self.get_qualified_name())
+ def __repr__(self) -> str:
+ return self.get_qualified_name()
+
def is_in_namespace(self, namespace: List[str]) -> bool:
return self.unwrap().isInNamespace(k.to_java_string_array(namespace))
