Database Toolbox enables you to connect to a Neo4j graph database using the MATLAB interface to Neo4j. After creating a Neo4j connection, you can search the graph database data. Create, update, and delete nodes and relationships in the database. Update node labels and properties and update relationship properties. Perform analysis with graph network algorithms using the MATLAB directed graph. Store the directed graph in the Neo4j database. Traverse and analyze graph data by executing Cypher® queries using the Cypher query language.
You can also connect to a Neo4j database using the Bolt protocol. You can use the same functionality to interact with graph data stored in a Neo4j database. To connect using the Bolt protocol, you must install the Database Toolbox Interface for Neo4j Bolt Protocol.
Traverse the Graph
|In-degree and out-degree for each associated relationship type for Neo4j database node|
|All node labels in Neo4j database|
|Associated relationship types for Neo4j database node|
|Convert graph or relationship structure from Neo4j database to directed graph|
|All property keys in Neo4j database|
|All relationship types in Neo4j database|
|Search for subgraph or entire graph in Neo4j database|
|Search Neo4j database nodes by label or by property key and value|
|Search Neo4j database nodes by node identifier|
|Search relationships for Neo4j database node|
|Search Neo4j relationship by relationship identifier|
Update the Graph
Update Labels and Properties in Graph
|Add labels to nodes in Neo4j database|
|Remove labels from nodes in Neo4j database|
|Remove properties from nodes in Neo4j database|
|Remove properties from relationships in Neo4j database|
|Set properties for nodes in Neo4j database|
|Set properties for relationships in Neo4j database|
|Update node labels and properties in Neo4j database|
|Update relationship properties in Neo4j database|
Store Directed Graph
Execute Cypher Query
About Neo4j Database Interfaces
- Graph Database Workflow for Neo4j Database Interfaces
Discover the Neo4j graph database and explore the Neo4j database interfaces and workflow.
- Database Toolbox Interface for Neo4j Bolt Protocol Installation
Install the Database Toolbox Interface for Neo4j Bolt Protocol and learn about the supported Neo4j database versions.
Explore and Update Graph
Analyze Graph Data Using MATLAB
- Determine Dependencies of Services in Network
Perform graph network analysis to find dependencies.
- Find Shortest Path Between People in Social Neighborhood
Perform graph network analysis to determine the shortest path.
- Find Friends of Friends in Social Neighborhood
Perform graph network analysis to determine successor nodes.
- Add and Query Group of Colleagues in Social Neighborhood
Store a directed graph in a Neo4j database and then execute a Cypher query on the resulting graph.
Address error messages for a Neo4j database, the MATLAB interface to Neo4j, and the Database Toolbox Interface for Neo4j Bolt Protocol.