pygraphistry
pygraphistry copied to clipboard
[FEA] controllable n-hop ranges and cypher syntax parity
Is your feature request related to a problem? Please describe.
In question https://github.com/graphistry/pygraphistry/issues/842 , there was discussion of a few n-hop capabilities:
-
specify
e(hops_min=m, hops_max=n)(m...nin neo4j) vs currente(hops=n)meaning range1..n -
match cypher's default of
e(hops=n)being shorthand forn..n(exact) -
some opt-in way to label nodes/edges by path step(s) they're encountered on
Describe the solution you'd like
e(hops=n)now meansn..n<-- breaking changee(hops_min=m, hops_max=n)now meansm..n- Option like
e(mark_hops=True)or a globa likechain(...., mark_hops=True), and/or ability to know within onee()or wrt global path length. Very unclear if precedent to build on here.
Additional context
When we add path semantics, this gets even more interesting
Also, the labeling can be worked around for typical cases: https://github.com/graphistry/pygraphistry/issues/842#issuecomment-3556177415