Articles for author: Vritika Naik

Types of Graph in Data Structure with Examples

A graph can be defined as group of vertices and edges that are used to connect these vertices. In data structure, a graph G=(V,E) is a collection of sets V and E where V and E are the collections of vertices and edges respectively. An edge is a line or arc connecting 2 vertices and it is denoted by a pair (i,j) where i,j belong to a set of vertices V. Let’s see types ...