From d30b617c5631dfafce63a750a3fb7a373867f679 Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Tue, 21 May 2024 10:50:40 +0800 Subject: [PATCH] chore: omit edge label when rank==0 --- ngql/magic.py | 3 ++- setup.py | 2 +- setup_ipython.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ngql/magic.py b/ngql/magic.py index 0253c1d..bf3171c 100644 --- a/ngql/magic.py +++ b/ngql/magic.py @@ -616,7 +616,8 @@ def render_pd_item(self, g, g_nx, item): k: str(v.cast()) if hasattr(v, "cast") else str(v) for k, v in props_raw.items() } - props.update({"rank": rank}) + if rank != 0: + props.update({"rank": rank}) # ensure start and end vertex exist in graph if not src_id in g.node_ids: g.add_node( diff --git a/setup.py b/setup.py index 7e0cccd..132e274 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="jupyter_nebulagraph", - version="0.12.1", + version="0.12.2", author="Wey Gu", author_email="weyl.gu@gmail.com", description="Jupyter extension for NebulaGraph", diff --git a/setup_ipython.py b/setup_ipython.py index 1a5c08a..4017469 100644 --- a/setup_ipython.py +++ b/setup_ipython.py @@ -5,7 +5,7 @@ setuptools.setup( name="ipython-ngql", - version="0.12.1", + version="0.12.2", author="Wey Gu", author_email="weyl.gu@gmail.com", description="Jupyter extension for NebulaGraph",