Skip to content

Commit

Permalink
chore: omit edge label when rank==0
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed May 21, 2024
1 parent d048867 commit d30b617
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ngql/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="jupyter_nebulagraph",
version="0.12.1",
version="0.12.2",
author="Wey Gu",
author_email="[email protected]",
description="Jupyter extension for NebulaGraph",
Expand Down
2 changes: 1 addition & 1 deletion setup_ipython.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ipython-ngql",
version="0.12.1",
version="0.12.2",
author="Wey Gu",
author_email="[email protected]",
description="Jupyter extension for NebulaGraph",
Expand Down

0 comments on commit d30b617

Please sign in to comment.