graphistry / pygraphistry

PyGraphistry is a Python library to quickly load, shape, embed, and explore big graphs with the GPU-accelerated Graphistry visual graph analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get graph result

lmeyerov opened this issue · comments

Currently, getting a table result is doable

  • We should support getting paired node & edge dataframes back, ideally as graph objects:
import graphistry

def query_graph(query: str, named_params: json) -> graphistry.Plottable:

   edges_df, src_col, dst_col = ...
   nodes_df, node_col = ...

   return (graphistry
      .edges(edges_df, src_col, dst_col)
      .nodes(nodes_df, node_col))
  • If only nodes or only edges are available, it's ok to specify only one of nodes() or edges()

  • If a type/label is known, it should be given column name 'type'

  • If a value type like float vs datetime is known, it should be matched to the corresponding pandas/arrow types

  • A few sample queries should be provided

commented

exact query or fuzzy ? @lmeyerov

This is in the context of Neptune cypher queries , so exact