DS-10 Getting started with Neo4j and Gephi Tool

Neo4j is one of the popular Graph Databases and Cypher Query Language (CQL). Neo4j is written in Java Language. This tutorial explains the basics of Neo4j.

Neo4j stores and displays data in the form of a graph. In Neo4j, data is represented by nodes and relationships between those nodes.

Neo4j is best for storing data that has many interconnecting relationships that’s why graph databases like Neo4j have an advantage and are much better at dealing with relational data than relational databases are.

Let’s start the demo,

  1. Download neo4j Desktop, and install it
  2. After the installation, Start Default Database called Movie DBMS
  3. And open it with Neo4j Browser as shown below Image.

From the left panel of the browser, there is a sample script from that we can access sample queries for Movie DBMS. And we are going to explore some of them Queries.

Example Queries:

1. Hello World! Query which creates 2 nodes having one Relationship.

Graph view of Hello World!
Table view of Hello World!
Text view of Hello World!
Console view of Hello World!

2. Get Some Random Data and display Graphs.

Get Some Data

3. It will list all Tom Hanks movies.

Graph view
Table View

4. Display graph of Tom Hanks’ co-actors.

5. List Total Node labels and Count all nodes available in DB.

6. Schema Visualization Of Database.

Gephi Tool

Gephi is an open-source network analysis and visualization software package. It is mainly used for visualizing, manipulating, and exploring networks and graphs from raw edge and node graph data. It is an excellent tool for data analysts and data science enthusiasts to explore and understand graphs.

We are going to explore the basic functionality of the Gephi tool. For that, we have to install the Gephi tool and need some sample Graph files so we are going to use the karate.gml dataset taken from Gephi datasets.

Note:

Gephi needs JDK version of 8 or above 8. If you already have it and then also getting the error of JDK then run exe file located at “C:\Program Files\Gephi-0.9.2\bin\gephi.exe” (gephi.exe) do not run gephi64.exe and make a shortcut to the desktop.

  1. Open Gephi tool and import karate.gml

2. After Open the file import Report Window is displayed having information about number of nodes and edges with other information.

3. Then It will open Workspace and show the graph related to datasets.

4. We can change the layout of graphs. there are many layouts available. In the below image Force Atlas2 is selected and display the relevant graph.

5. We can also change the color of the Graph from Appearance pannels.

6. Statistic panels have a list of inbuilt scripts from that we can direct run script and display the report of that selected Statistics Script. Below the Image Average Degree of the graph is shown. This way we can explore another script also.

7. Data Laboratory Section shows data table related to nodes and edge of an imported graph file.

This is all about the introduction to Neo4j and Gephi tools. You can easily visualize all the information using these tools.

Thank You!!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

I’m getting to be early adopter.

Level Design: Colliders for Game Objects in Scene!

Jmeter GUI and NON-GUI Mode

What’s the best way to learn to code? — Active vs Passive Learning

Why your business requires Amosoft for ERP EDI Integration?

Why your business requires Amosoft for ERP EDI Integration

SamoTIPS — Solana Season Hackathon reveal

I’d been trying to connect with other queer people in design, to learn more about queer design…

Cleaning Up App Codenames

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Happy Makadiya

Happy Makadiya

More from Medium

Smart Factories : Time to make Manufacturing smarter & Agile!

Setup Strapi v4 with Digital Ocean’s Spaces Object Storage

An indispensable Part of Acceleration — GPU Computing