#NEWLINE# def create( self , subgraph ) : #NEWLINE# #INDENT# ' Create remote nodes and relationships that correspond to those in a\n        local subgraph. Any entities in *subgraph* that are already bound to\n        remote entities will remain unchanged, those which are not will become\n        bound to their newly-created counterparts.\n\n        For example::\n\n            >>> from py2neo import Graph, Node, Relationship\n            >>> g = Graph()\n            >>> tx = g.begin()\n            >>> a = Node("Person", name="Alice")\n            >>> tx.create(a)\n            >>> b = Node("Person", name="Bob")\n            >>> ab = Relationship(a, "KNOWS", b)\n            >>> tx.create(ab)\n            >>> tx.commit()\n            >>> g.exists(ab)\n            True\n\n        :param subgraph: a :class:`.Node`, :class:`.Relationship` or other\n                    creatable object\n        ' #NEWLINE# try : #NEWLINE# #INDENT# subgraph . __db_create__ ( subgraph ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise TypeError ( ( 'No method defined to create object %r' % subgraph ) )