Top "Graph-algorithm" questions

Graph Algorithms are a sequence of well-defined steps that will solve a problem related to Graph Theory, where a Graph in this context is a collection of vertices ("nodes") and edges that connect these vertices.

When is it practical to use Depth-First Search (DFS) vs Breadth-First Search (BFS)?

I understand the differences between DFS and BFS, but I'm interested to know when it's more practical to use one …

algorithm graph-algorithm graph-theory depth-first-search breadth-first-search
Finding all cycles in a directed graph

How can I find (iterate over) ALL the cycles in a directed graph from/to a given node? For example, …

algorithm graph-theory graph-algorithm
Find all paths between two graph nodes

I am working on an implemtation of Dijkstras Algorithm to retrieve the shortest path between interconnected nodes on a network …

algorithm graph-theory graph-algorithm breadth-first-search
Negative weights using Dijkstra's Algorithm

I am trying to understand why Dijkstra's algorithm will not work with negative weights. Reading an example on Shortest Paths, …

algorithm dijkstra shortest-path graph-algorithm
Time Complexity of the Kruskal Algorithm?

I am calculating time complexity for kruskal algorithm like this (Please see the algorithm in the Image Attached) T(n) = …

algorithm time-complexity graph-algorithm asymptotic-complexity kruskals-algorithm
Explanation of Algorithm for finding articulation points or cut vertices of a graph

I have searched the net and could not find any explanation of a DFS algorithm for finding all articulation vertices …

algorithm graph complexity-theory graph-algorithm microsoft-distributed-file-system
Relaxation of an edge in Dijkstra's algorithm

What does relaxation of an edge mean in the context of graph theory ? I came across this while studying up …

algorithm graph-theory graph-algorithm
How to find if a graph is bipartite?

I have been trying to understand the bipartite graph. To my understanding it is a graph G which can be …

algorithm data-structures graph graph-algorithm bipartite
What are the differences between segment trees, interval trees, binary indexed trees and range trees?

What are differences between segment trees, interval trees, binary indexed trees and range trees in terms of: Key idea/definition …

algorithm tree graph-algorithm interval-tree segment-tree
difference between Bellman Ford and Dijkstra's algorithm

2 1 1----------2---------4 | | | |3 |3 |1 | 6 | | 3---------5 --------- Ok, so this is the graph. My source node is 1 and destination node is 5 My question …

networking graph-algorithm