This is machine translation

Translated by Microsoft
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.

Working with MATLAB Interface to Neo4j

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.

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 of different relationship types.

For details about graphs, see Directed and Undirected Graphs (MATLAB). For details about the Neo4j database, see Why Graph Databases?

MATLAB Interface to Neo4j Workflow

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.

  1. Connect to a Neo4j database using neo4j.

  2. 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:

  3. 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:

  4. Export a directed graph from MATLAB into a Neo4j database using the storeDigraph function.

  5. To perform graph network analysis, you can convert output structures to digraph objects using neo4jStruct2Digraph. For details, see Directed and Undirected Graphs (MATLAB).

    Or, if you know the Cypher query language, you can execute a Cypher query using executeCypher. For details, see Cypher Query Language.

See Also

| |

Related Topics

External Websites