Introduction to graph in data structure

Definition of Graph

Graph: is a non-linear data structure that consists of a finite set of nodes or vertices and a set of Edges which link a pair of vertices.

Notation & some definitions

Nodes: entities whose relationships…


This content originally appeared on DEV Community and was authored by Aya Bouchiha

Definition of Graph

  • Graph: is a non-linear data structure that consists of a finite set of nodes or vertices and a set of Edges which link a pair of vertices.

Notation & some definitions

  • Nodes: entities whose relationships are expressed using edges.

  • An edge is an incident on the two nodes it connects.

  • Any two nodes connected by an edge or any two edges connected by a node are said to be adjacent

  • Weight: is a piece of information or an associated value that edges have.

  • V: the set of nodes (vertices).

  • |V|: the total number of nodes.

  • E: the set of edges.

  • |E|: the total number of edges.

Applications and real-life examples of using Graph

  • Google map
  • Friend suggestion on Facebook
  • Recommendations in e-commerce website
  • studying molecules in chemistry and physics
  • Operating systems
  • VPN
  • Building networks
  • Trafic lights
  • Google search

References and useful resources

Have an amazing day!


This content originally appeared on DEV Community and was authored by Aya Bouchiha


Print Share Comment Cite Upload Translate Updates
APA

Aya Bouchiha | Sciencx (2021-07-06T23:24:05+00:00) Introduction to graph in data structure. Retrieved from https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/

MLA
" » Introduction to graph in data structure." Aya Bouchiha | Sciencx - Tuesday July 6, 2021, https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/
HARVARD
Aya Bouchiha | Sciencx Tuesday July 6, 2021 » Introduction to graph in data structure., viewed ,<https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/>
VANCOUVER
Aya Bouchiha | Sciencx - » Introduction to graph in data structure. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/
CHICAGO
" » Introduction to graph in data structure." Aya Bouchiha | Sciencx - Accessed . https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/
IEEE
" » Introduction to graph in data structure." Aya Bouchiha | Sciencx [Online]. Available: https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/. [Accessed: ]
rf:citation
» Introduction to graph in data structure | Aya Bouchiha | Sciencx | https://www.scien.cx/2021/07/06/introduction-to-graph-in-data-structure/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.