Category: 

What Is a Graph Database?

Article Details
  • Written By: Alex Newth
  • Edited By: Angela B.
  • Last Modified Date: 29 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Built at the request of Dag Hammarskjöld, the United Nations Headquarters has a meditation room dedicated to silence.   more...

October 1 ,  1890 :  Yosemite National Park was established.  more...

A graph database is one of the three major database types, along with relational databases and object databases. The main difference between a graph database and the other two is that graph databases function on relational graphing rather than using tables or mapping objects. There are three objects used in these databases: nodes, properties and edges. These databases are best for users who understand graphed information, and they move quicker at calculating associated data sets.

Graph databases are just that — databases that store information in a graphing format. Information is grouped based on whether it can be graphed together or not, and these databases are better for programmers looking to use graphing functions. When attached to websites, these databases are expensive, or use large amounts of code, to create the complicated database structure most websites need.

With a graph database, there are three parts, known as the nodes, properties and edges. The nodes represent entities. In a database that displays information about businesses and their relationship, the nodes would be the businesses. Each node is given a title, and the title is mostly so users and programmers can distinguish one node from the other nodes. The node’s title is rarely used in finding relations, but it can be used if the user needs.

Ad

The next piece of the graph database is the properties section. This goes along with the nodes and explains what the node is. Depending on what the database is graphing, the programmer will input relevant information. For the business database, if the programmer is looking to find similar businesses, the programmer will enter the business’s niche into the properties section; if the programmer is looking for similar sales figures, then the sales figures would be the properties.

Edges, the last section of the graph database, are lines that branch between the nodes and find relationships between the sections. For example, if the programmer wants to find similar businesses, the edges will graph between the nodes and find businesses that have matching properties. This gives users a visual graph on which he or she can see the relationship between the nodes.

The other two database types function in a similar way but have different ways of displaying or programming the databases. A relational database is nearly identical to a graph database, but it uses tables instead of graphs to show the similarities between database entries. Object databases use object-oriented programming (OOP) in which the objects function similarly to the nodes.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}