The MATLAB® interface to Neo4j® enables you to:
Create a Neo4j database connection.
Import graph data from a Neo4j database into MATLAB.
Perform graph network analysis by creating a directed graph from the imported graph data.
Create, update, and delete the nodes and relationships in the graph database.
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.
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 of different relationship types.
This workflow shows how to connect to a Neo4j database, search and update the graph database, store a directed graph, and perform graph network analysis.
Connect to a Neo4j database using
Search the graph database.
Conduct a general search in the graph database with any of these functions:
Or, conduct a targeted search in the graph database with any of these functions:
Update the graph database.
Create nodes and relationships with these functions:
Update nodes and relationships with these functions:
Delete nodes and relationships with these functions:
Export a directed graph from MATLAB into a Neo4j database using the