This is machine translation

Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

Graph Database Workflow for Neo4j Database Interfaces

You can interact with graph data stored in a Neo4j® database using the MATLAB® interface to Neo4j or the Database Toolbox™ Interface for Neo4j Bolt Protocol. The MATLAB interface to Neo4j uses the
REST API to create a database connection. The Database Toolbox Interface for Neo4j Bolt Protocol uses the Bolt protocol to make the connection.

Create, update, and delete nodes and relationships in the graph
database.

Update node labels and properties and update relationship
properties.

Export a directed graph from MATLAB into a Neo4j database.

Execute Cypher® queries on the Neo4j database, if you are familiar with the Cypher query language.

Close the database connection.

The Database Toolbox Interface for Neo4j Bolt Protocol enables you to use the same functionality and the same workflow to
interact with graph data stored in a Neo4j database.

About Neo4j Graph Databases

A graph database stores data using a graph data model. This model consists of
nodes and relationships. A relationship describes how two or more nodes are related
to each other.

Nodes can have one or more node labels and property keys, or zero labels and
property keys. Neo4j assigns unique identifiers to nodes and relationships.

Relationships are always directed and have a relationship type. A relationship
always has a start node and an end node. A node can have incoming and outgoing
relationships. Two nodes can have multiple relationships between them.

Advantage of Database Toolbox Interface for Neo4j Bolt Protocol

You can connect to a Neo4j database using the REST API or the Bolt protocol. The Bolt protocol
provides the advantage of sending binary data instead of a JSON payload using the
REST API. Binary data is smaller than a JSON payload. Sending data of a smaller size
generally improves performance when you use the Bolt protocol.