Skip to content

non-empty format string passed to object.__format__ #10

Description

@ajendrex

Hello,

following the sample code from README.md, I get the following error:

g.Vertex("Humphrey Bogart").All()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-5ec9876cb5d1> in <module>()
----> 1 g.Vertex("Humphrey Bogart").All()

/home/hurbina/src/pyley/pyley/__init__.py in Vertex(self, *node_ids)
     76             return self.V()
     77 
---> 78         return self.V(node_ids)
     79 
     80     def Morphism(self):

/home/hurbina/src/pyley/pyley/__init__.py in V(self, *node_ids)
     60         for index, node_id in enumerate(node_ids):
     61             if index == l - 1:
---> 62                 builder.append(u"'{0:s}'".format(node_id))
     63             else:
     64                 builder.append(u"'{0:s}',".format(node_id))

TypeError: non-empty format string passed to object.__format__

I'm ultimately looking to use this library to create a graph (insert vertex and links), is that possible? how?

Thanks,
H.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions