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

Jupyter Notebook extension for graph visualization #50

Open
yecol opened this issue Dec 28, 2020 · 3 comments · Fixed by #127
Open

Jupyter Notebook extension for graph visualization #50

yecol opened this issue Dec 28, 2020 · 3 comments · Fixed by #127
Labels
enhancement New feature or request jupyterhub

Comments

@yecol
Copy link
Collaborator

yecol commented Dec 28, 2020

Is your feature request related to a problem? Please describe.

Graph visualization is an essential part for a graph computing platform.
As the first step, we may want a module to visualize the graph data.

Describe the solution you'd like

  • implement this feature via a Jupyter notebook extension in the location /python/jupyter
  • visualize the graph data in the result cell when the draw functions are invoked.
  • the draw APIs:
# assume the g is a Graph in GraphScope.
# draw the whole graph. (maybe cascaded if the graph is huge.)
g.draw()

# draw selected vertices and their induced subgraph
g.draw(vertices=[1,2,3,4])

# draw induced subgraph with hop extension 
g.draw(vertices=[1, 2 ,3, 4], hop=2)

# draw a subgraph with selected labels.
g.draw(vlabel=students”, elabel=friends”)

# draw the graph with captions
# label.e, label.v, label
# id.e, id.v, id
# prop.XXX
# e.g.,
g.draw(caption=label:e”)
g.draw(caption="prop.name")

# pass the args with a dict.
g.draw(config=Dict())

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@yecol yecol added the enhancement New feature or request label Dec 28, 2020
@howie6879
Copy link
Contributor

Great feature, how about adding query support for gremlin?

g.draw(gremlin_sql = "g.V()")

@yecol
Copy link
Collaborator Author

yecol commented Dec 28, 2020

Good suggestion! We will consider this on the next step. :)

@sighingnow
Copy link
Collaborator

Reopen since #127 is just a startpoint for the visualization task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jupyterhub
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants