tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Plurad (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TINKERPOP-1769) Python graph[empty] string representation is confusing
Date Wed, 06 Sep 2017 19:52:00 GMT
Jason Plurad created TINKERPOP-1769:
---------------------------------------

             Summary: Python graph[empty] string representation is confusing
                 Key: TINKERPOP-1769
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1769
             Project: TinkerPop
          Issue Type: Bug
          Components: language-variant
    Affects Versions: 3.2.6
            Reporter: Jason Plurad
            Priority: Minor


>From this [StackOverflow post|https://stackoverflow.com/questions/46070265/gremlin-python-returning-empty-graph/46082468#46082468],
the string representation of the [Python Graph|https://github.com/apache/tinkerpop/blob/3.2.6/gremlin-python/src/main/jython/gremlin_python/structure/graph.py#L37]
object is:

{noformat}graph[empty]{noformat}

This is likely trying to be similar to {{EmptyGraph}} in Java, but this can be misleading
for new users, especially if they had been using TinkerGraph which shows how many vertices
and edges are in the graph. Something like one of these could be less confusing:

{noformat}
graph[remote]
graph[]
{noformat}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message