Skip to content

Commit

Permalink
Merge pull request #56 from wey-gu/rank_0_omit
Browse files Browse the repository at this point in the history
chore: omit edge label when rank==0
  • Loading branch information
wey-gu authored May 21, 2024
2 parents c485f6b + d30b617 commit e41b1bf
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 e41b1bf

Please sign in to comment.