Top "Graph-theory" questions

A graph is a mathematical structure that contains a collection of vertices or 'nodes' and a collection of edges that connect pairs of vertices.

Graph Algorithm To Find All Connections Between Two Arbitrary Vertices

I am trying to determine the best time efficient algorithm to accomplish the task described below. I have a set …

algorithm language-agnostic graph-theory
Find the shortest path in a graph which visits certain nodes

I have a undirected graph with about 100 nodes and about 200 edges. One node is labelled 'start', one is 'end', and …

algorithm graph-theory dijkstra
Graphs data structure: DFS vs BFS?

if given a graph problem how do we know whether we need to use bfs or dfs algorithm??? or when …

graph graph-theory
What's a good and stable C++ tree implementation?

I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is stl compatible if at all …

c++ tree graph-theory
Why DFS and not BFS for finding cycle in graphs

Predominantly DFS is used to find a cycle in graphs and not BFS. Any reasons? Both can find if a …

algorithm tree graph-theory depth-first-search breadth-first-search
Sample Directed Graph and Topological Sort Code

Anyone know where I can obtain a sample implementation of a Directed Graph and sample code for performing a topological …

java algorithm data-structures graph-theory
C# graph drawing library?

I'm looking for a (free) library which allows me to draw a CFG (control flow graph). Something like yFiles, but …

c# graphics graph-theory
What is meant by diameter of a network?

The diagram shown on this link of the "A graph with 6 vertices and 7 edges where the vertex no 6 on the …

graph-theory terminology shortest-path
How can I find the minimum cut on a graph using a maximum flow algorithm?

I need to find the minimum cut on a graph. I've been reading about flow networks, but all I can …

graph-theory cut minimum flow max-flow
What is the distinction between sparse and dense graphs?

I read it is ideal to represent sparse graphs by adjacency lists and dense graphs by an adjacency matrix. But …

data-structures graph graph-theory