Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Competitive Programming
2.3k+ articles
Algorithms
1.9k+ articles
Tree
1.4k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Advanced Data Structure
580+ articles
DFS
340+ articles
Data Structures
250+ articles
Graph Traversals
57 articles
Data Structures-Graph
33 posts
Popular Articles
Recent Articles
Dynamic Programming (DP) and Directed Acyclic Graphs (DAG)
Last Updated: 07 March 2024
Pre-Requisite:What is Directed Graph? | Directed Graph meaningDynamic Programming (DP) Tutorial with ProblemsEvery Dynamic Programming probl
...read more
Graph
Dynamic Programming
Competitive Programming
Algorithms-Dynamic Programming
Data Structures-Graph
DSA
Kahn's Algorithm vs DFS Approach: A Comparative Analysis
Last Updated: 19 October 2023
Topological sorting is a common problem in computer science that involves arranging the vertices of a directed acyclic graph (DAG) in a line
...read more
Graph
Stack
Sorting
Topological Sorting
graph-connectivity
Data Structures-Tree Traversals
Data Structures-Stack
Data Structures-Graph
DSA
Pendant Vertices, Non-Pendant Vertices, Pendant Edges and Non-Pendant Edges in Graph
Last Updated: 31 January 2023
Pre-requisites: Handshaking theorem.Pendant VerticesLet G be a graph, A vertex v of G is called a pendant vertex if and only if v has degree
...read more
Tree
Graph
Data Structures-Graph
DSA
Similar Topics
DSA
22.3k+ articles
Competitive Programming
2.3k+ articles
Algorithms
1.9k+ articles
Tree
1.4k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Advanced Data Structure
580+ articles
DFS
340+ articles
Data Structures
250+ articles
Graph Traversals
57+ articles
Print Adjacency List for a Directed Graph
Last Updated: 18 January 2023
An Adjacency List is used for representing graphs. Here, for every vertex in the graph, we have a list of all the other vertices which the p
...read more
Graph
STL
cpp-vector
C++
Data Structures
Data Structures-Graph
cpp-list
DSA
Minimum time taken by each job to be completed given by a Directed Acyclic Graph
Last Updated: 19 April 2024
Given a Directed Acyclic Graph having V vertices and E edges, where each edge {U, V} represents the Jobs U and V such that Job V can only be
...read more
Graph
Algorithms
Greedy
BFS
Topological Sorting
Data Structures-Graph
Algorithms-Graph Traversals
Graph Traversals
DSA
Minimum Cost using Dijkstra by Modifying Cost of an Edge
Last Updated: 27 March 2023
Given an undirected weighted graph of N nodes and M edges in the form of a tuple lets say {X, Y, Z} such that there is an edge with cost Z b
...read more
Dijkstra
Graph
Queue
Algorithms
Advanced Data Structure
Data Structures-Graph
Algorithms-Graph Traversals
priority-queue
cpp-priority-queue
DSA
Real-life Applications of Data Structures and Algorithms (DSA)
Last Updated: 31 July 2024
You may have heard that DSA is primarily used in the field of computer science. Although DSA is most commonly used in the computing field, i
...read more
Arrays
Linked List
Tree
Graph
Stack
Queue
Heap
Hash
Matrix
Data Structures
Data Structures
Data Structures-Binary Trees
Data Structures-Tree Traversals
Data Structures-Linked List
Data Structures-Stack
Data Structures-Queue
Data Structures-Graph
Data Structures-Balanced Binary Search Trees
Data Structures-Hash
Data Structures-Array
Data Structures-Misc
Data Structures-B and B+ Trees
Data Structures-Heap
DSA
Parenthesis Theorem
Last Updated: 28 March 2023
Parenthesis Theorem is used in DFS of graph. It states that the descendants in a depth-first-search tree have an interesting property. If v
...read more
Tree
Graph
Algorithms
Analysis of Algorithms
Searching
Advanced Data Structure
DFS
Data Structures
Data Structures-Graph
Algorithms-Graph Traversals
graph-basics
DSA
Some Basic Theorems on Trees
Last Updated: 06 March 2023
Tree:- A connected graph without any circuit is called a Tree. In other words, a tree is an undirected graph G that satisfies any of the fol
...read more
Tree
Trees
Binary Tree
Advanced Data Structure
Data Structures-Graph
DSA
Basic Properties of a Graph
Last Updated: 15 March 2023
A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are
...read more
Graph
Data Structures-Graph
graph-basics
DSA
Degree of a Cycle Graph
Last Updated: 02 September 2022
Given the number of vertices in a Cycle Graph. The task is to find the Degree and the number of Edges of the cycle graph.Degree: Degree of a
...read more
Graph
Data Structures-Graph
C++ Programs
graph-cycle
DSA
Data Structures | Graph | Question 9
Last Updated: 28 June 2021
In which scenario would a directed acyclic graph (DAG) be most suitable? (A)Representing dependencies between tasks i
...read more
Data Structures
Data Structures
Data Structures-Graph
DSA
Data Structures | Graph | Question 8
Last Updated: 28 June 2021
Consider an undirected random graph of eight vertices. The probability that there is an edge between a pair of vertices is 1/2. What is the
...read more
Data Structures
Data Structures
Data Structures-Graph
DSA
Data Structures | Graph | Question 9
Last Updated: 28 June 2021
Which of the following statements is/are TRUE for an undirected graph?P: The number of odd-degree vertices is evenQ: Sum of degr
...read more
Data Structures
Data Structures
Data Structures-Graph
DSA
Data Structures | Graph | Question 1
Last Updated: 28 June 2021
Which of the following is an advantage of adjacency list representation over adjacency matrix representation of a graph?(A) In adjacency lis
...read more
Data Structures
Data Structures
Data Structures-Graph
DSA
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !