How to use the graphistry.plotter.Plotter function in graphistry

To help you get started, we’ve selected a few graphistry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
Start = @@set;

    while Start.size() > 0 and @@stop == false do

      Start = select t from Start:s-(:e)-:t
      where e.goUpper == TRUE
      accum @@edgeList += e
      having t.type != "Service";
    end;

    print @@my_edge_list;
  }
                    \"\"\", {'edges': 'my_edge_list'}).plot()
        """
        from . import plotter
        return plotter.Plotter().gsql(query, bindings, dry_run)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
:type pwd: Optional string.
        :param verbose: Whether to print operations
        :type verbose: Optional bool.         
        :returns: Plotter.
        :rtype: Plotter.


        **Example: Standard**
                ::

                    import graphistry
                    tg = graphistry.tigergraph(protocol='https', server='acme.com', db='my_db', user='alice', pwd='tigergraph2')                    

        """
        from . import plotter
        return plotter.Plotter().tigergraph(protocol, server, web_port, api_port, db, user, pwd, verbose)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
import graphistry
                    tg = graphistry.tigergraph()
                    tg.gsql_endpoint('neighbors', {'k': 2}, {'edges': 'my_edge_list'}, 'my_db').plot()

        **Example: Read data**
                ::

                    import graphistry
                    tg = graphistry.tigergraph()
                    out = tg.gsql_endpoint('neighbors')
                    (nodes_df, edges_df) = (out._nodes, out._edges)

        """
        from . import plotter
        return plotter.Plotter().gsql_endpoint(method_name, args, bindings, db, dry_run)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
def cypher(query, params = {}):
        """

        :param query: a cypher query
        :param params: cypher query arguments
        :return: Plotter with data from a cypher query. This call binds `source`, `destination`, and `node`.

        Call this to immediately execute a cypher query and store the graph in the resulting Plotter.

                ::

                    import graphistry
                    g = graphistry.bolt({ query='MATCH (a)-[r:PAYMENT]->(b) WHERE r.USD > 7000 AND r.USD < 10000 RETURN r ORDER BY r.USD DESC', params={ "AccountId": 10 })
        """
        from . import plotter
        return plotter.Plotter().cypher(query, params)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
def nodes(nodes):
        from . import plotter
        return plotter.Plotter().nodes(nodes)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
def settings(height=None, url_params={}, render=None):
        from . import plotter
        return plotter.Plotter().settings(height, url_params, render)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
def graph(ig):
        from . import plotter
        return plotter.Plotter().graph(ig)
github graphistry / pygraphistry / graphistry / pygraphistry.py View on Github external
:returns: Plotter.
        :rtype: Plotter.

        **Example**

                ::

                    import graphistry
                    g = graphistry.bind()

        """



        from . import plotter
        return plotter.Plotter().bind(source, destination, node, \
                              edge_title, edge_label, edge_color, edge_weight, \
                              point_title, point_label, point_color, point_size)