Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: introduce interface/function to better prepare data for graph vis #318

Open
1 of 2 tasks
wey-gu opened this issue Feb 21, 2024 · 1 comment
Open
1 of 2 tasks
Assignees
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Feb 21, 2024

Like an interface to parse arbitrary resultset as a list of vertices and a list of edges.

With it, those who are building things to visualize graph data will be extremely happy.

cc @Nicole00 @haoxins

@wey-gu wey-gu added the type/enhancement Type: make the code neat or more efficient label Feb 21, 2024
@wey-gu wey-gu changed the title api: introduce abstraction to better prepare data for graph vis api: introduce interface/function to better prepare data for graph vis Feb 21, 2024
@wey-gu wey-gu self-assigned this Feb 21, 2024
@haoxins
Copy link
Contributor

haoxins commented Feb 21, 2024

Absolutely~ 👍
Currently, I have to export the data from the Meta/Storage API by myself.

wey-gu added a commit that referenced this issue Mar 15, 2024
result = session.execute('GET SUBGRAPH WITH PROP 2 STEPS FROM "player101" YIELD VERTICES AS nodes, EDGES AS relationships;')
v = result.dict_for_vis()

implement: #318
Nicole00 added a commit that referenced this issue Apr 22, 2024
…ci (#323)

* feat: resultSet sugar for Graph Visulization

result = session.execute('GET SUBGRAPH WITH PROP 2 STEPS FROM "player101" YIELD VERTICES AS nodes, EDGES AS relationships;')
v = result.dict_for_vis()

implement: #318

* pop rank to prop

* feat: resultSet.as_pandas() && ValueWrapper.cast_primitive()

* docs and tests

* chore: polishing wording of contribution

* docs: polishing readme

* fix: test cases missing import(sorry)

* fix: tag props calling failure and tests

* fix test path primitive

* fix tests, add example tests

* fix time.cast_primitive()

* docs: polishing Getting Started

in a straightforward way

* feat: Config and SessionPoolConfig could be omit by default

- Readme getting started polished
- Config should be able to omit
- The previous SessionPoolConfig Check mechnism was wrong, fixed it

* docs: graph vis with dict_for_vis & Apache ECharts

* fix: not run GraphVis example in CI

* address Hao Xin's comment

---------

Co-authored-by: Anqi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

2 participants