title: connecting the nodes with relationships in py2neo
body: <p>I have the following python code to make a graph in neo4j. I am using py2neo version 2.0.3.</p>
  
  <pre><code> import json
      from py2neo import neo4j, Node, Relationship, Graph
  
      graph = neo4j.Graph("http://localhost:7474/db/data/")
         with open("example.json") as f:
          for line in f:
              while True:
                  try:
                      file = json.loads(line)
                      break
                  except ValueError:
                      # Not yet a complete JSON value
                      line += next(f)
  
                      # Now creating the node and relationships
  
              news, = graph.create(Node("Mainstream_News", id=unicode(file["_id"]), entry_url=unicode(file["entry_url"]),
                                        title=unicode(file["title"])))  # Comma unpacks length-1 tuple.
              authors, = graph.create(
                  Node("Authors", auth_name=unicode(file["auth_name"]), auth_url=unicode(file["auth_url"]),
                       auth_eml=unicode(file["auth_eml"])))
  
              graph.create(Relationship(news, "hasAuthor", authors ))
  </code></pre>
  
  <p>I can create a graph with nodes Mainstream_News and Authors with a relation 'hasAuthor'. My problem is when I am doing this I am having one Mainstream_News node with one Authors but in reality one author nodes has more than one Mainstream_News. I would like to make <code>auth_name</code> property of a Author nodes as a index to connect with the Mainstream_news nodes. Any suggestions will be great. </p>