def combine_relation_and_node(relationship):
  """
  Combine a neo4j Relation's properties and the relation's end Node's properties
  into a single dictionary.

  @param relationship:       the neo4j Relationship to transform.
  """

  relation_props = relationship.get_properties()
  node_props = relationship.get_end_node().get_properties()
  return {'relation':relation_props, 'node':node_props}