Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building web applications with Python and Neo4j
  • Table Of Contents Toc
  • Feedback & Rating feedback
Building web applications with Python and Neo4j

Building web applications with Python and Neo4j

By : Sumit Gupta
4.3 (3)
close
close
Building web applications with Python and Neo4j

Building web applications with Python and Neo4j

4.3 (3)
By: Sumit Gupta

Overview of this book

If you are a Python developer and want to expand your understanding of Python-based web applications over Neo4j graph data models, this is the book for you.
Table of Contents (9 chapters)
close
close
8
Index

Adding relationships to models


Neomodel provides the following classes in the neomodel package for defining relationships between nodes or entities:

  • Relationship: This class is used to define a bi-directional relationship in which the "direction" of the relationship does not matter. It can be in any direction. For example, in our social data model we are using the FRIEND relationship in which direction does not matter, because if one person declares being a friend to another then vice-versa is also true.

  • RelationshipTo: It is used to define the outgoing relationship.

  • RelationshipFrom: It is used to define the incoming relationship.

All of these classes accept four parameters and expose the connect() method to establish a relationship with the given node. The following is the explanation of each parameter required by the relationship classes:

  • Class name: This is the name of the class that enjoys the relationship with the class in which the relationship is defined.

  • Relationship type: This is...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building web applications with Python and Neo4j
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon