Graph In Data Structure - Cyber Thieve

Graph - Data Structure and Algorithms

Graph is a non-linear Data Structure consisting of Nodes and Edges. The nodes are some times also referred as vertices and the edges are lines arcs that connect any to nodes in the graph.

A Graph of a finite vertices(nodes) and set of Edges which connect a pair of Nodes.

GRAPH IN DSA


Properties of Graph :

A Graph G can be represent as 

G = ( V, E)

V : Finite and non empty set of vertices/nodes.

E : Set of pair of nodes/vertices it called edges.

  • The node are adjacent if they are connected by an edge.
  • A node's degree is the number of its edges.
  • A Graph can be directed or indirect.

Representation of a Graph :

Graph can be represent by two method 
  1. Adjacency matrix
  2. Adjacency list 

Adjacency matrix :

Graph adjacency matrix representation is a process to show the graph connections or paths as a matrix.


Adjacency List :

Graph adjacency list representation is a process to show the graph connections or
paths as a list. 

NOTE : If you fine any mistake or weakness in my article please help us to improve our content.


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!