From 51bb40ba7ccbab1c996ab2fae59b7d49ffc12061 Mon Sep 17 00:00:00 2001 From: Parker Erickson Date: Mon, 11 Dec 2023 16:06:24 -0600 Subject: [PATCH] fix(oo schema): oo schema undirected edge bug --- pyTigerGraph/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyTigerGraph/schema.py b/pyTigerGraph/schema.py index 19750998..d9de9445 100644 --- a/pyTigerGraph/schema.py +++ b/pyTigerGraph/schema.py @@ -526,7 +526,7 @@ def add_edge_type(self, edge: Edge): if not(reverse_edge) and is_directed: raise TigerGraphException("Reverse edge definition not set. Set the reverse_edge variable to a boolean or string.") - if not(is_directed): + if is_directed is None: raise TigerGraphConnection("is_directed variable not defined. Define is_directed as a class variable to the desired setting.") if not(edge.attributes.get("from_vertex", None)):