Neo4j stores and manages data in its more natural, connected state, maintaining data relationships that deliver lightning-fast queries, the deeper context for analytics, and a pain-free modifiable data model.
In simple words, Neo4j is the MySQL of the graph databases. It provides a graph database management system, a language to query the database, a.k.a CYPHER, and a visual interface with the neo4j browser.
Let’s start the demo,
Download neo4j Desktop, and install it
After the installation,
For the example, I am running a hello world query that will create the 2 nodes called Neo4j and Hello world and 1 relation called says. You can see that the 2 nodes are created and one relation called says is created using the query.
In the below image you can see the table view of nodes and relations.
I am using example project for the demo. Start the Movies database and see the
database in the Neo4j browser.
After that load the movie database to the neo4j and it will show the data in graph format.
By using different query we can find the appropriate information like how many labels
are there.
Using this query we can know that how many types of relationships is there in the database.
By using this query we can know that how the person is connected to the movie, who is a producer of the movie, which role the person acted in the movie. Using these types of queries we can get all of the customized data.
Gephi
Gephi is an open-source network analysis and visualization software package written in Java on the NetBeans platform.
You can download gephi tool form here.
In this tutorial, I have chosen simple lesmiserables.gml dataset and performed some basic gephi operations on it. So let’s get started.
First open the gephi tool and click on the new project. After that choose File->Open and load the dataset of your choice as shown below. And Load the dataset
Below is how all the nodes and edges are displayed l after the load of the dataset.
For data table click on windows->data table.
Next we can differentiate the nodes based on a various ranking like their In-Degree, Out-Degree, or Degree and show them in different colors. For this in the left pane on the top side choose Nodes->Ranking there choose the ranking like in the below image Degree is chosen.
Average degree report you see when you click on the run button in the above image.
Conclusion
I hope now you can work by yourself in the Neo4j and Gephi tool for data visualization in graphical form . I tried to cover as many things as I can. Now you can explore more by yourself.
Commentaires