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.

Designing a Yahoo Pipes inspired interface

I really like the interface for Yahoo Pipes (http://pipes.yahoo.com/pipes/) and would like to create a similar …

interface widget graph-theory yahoo-pipes
Fast max-flow min-cut library for Python

Is there a reliable and well-documented Python library with a fast implementation of an algorithm that finds maximum flows and …

python graph graph-theory mathematical-optimization max-flow
How do I find the shortest path that covers all nodes in a directed cyclic graph?

I need an example of the shortest path of a directed cyclic graph from one node (it should reach to …

c++ algorithm graph-theory cycle shortest-path
Undirected graph conversion to tree

Given an undirected graph in which each node has a Cartesian coordinate in space that has the general shape of …

graph tree graph-theory nodes
Good algorithm for finding the diameter of a (sparse) graph?

I have a large, connected, sparse graph in adjacency-list form. I would like to find two vertices that are as …

algorithm math graph-theory
Secret santa algorithm

Every Christmas we draw names for gift exchanges in my family. This usually involves mulitple redraws until no one has …

algorithm language-agnostic graph-theory
problem to determine the chromatic polynomial of a graph

for a homework graph theory, I'm asked to determine the chromatic polynomial of the following graph For the Descomposition Theorem …

graph-theory polynomial-math text-coloring
All minimum spanning trees implementation

I've been looking for an implementation (I'm using networkx library.) that will find all the minimum spanning trees (MST) of …

python algorithm language-agnostic graph-theory minimum-spanning-tree
Why do we need a priority queue in Prim's Algorithm

As my question speaks I want to know why do we use Priority queue in Prim's Algorithm? How does it …

c++ algorithm graph-theory minimum-spanning-tree prims-algorithm
When are interfaces needed?

(In the context of .NET for what its worth) I tend to not use inheritance and rarely use interfaces. I …

.net inheritance interface graph-theory composite