Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Working with the MATLAB Interface to Neo4j

The MATLAB® interface to Neo4j® lets you connect to a Neo4j graph database and import graph data into MATLAB. You can perform graph network analysis by creating a directed graph from the imported graph data. Or, if you are familiar with the Cypher® query language, you can execute Cypher queries on the 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 zero or more node 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 and 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 the graph database, 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. 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 Examples

More About

External Websites

Was this topic helpful?