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.

Is there any graph data structure implemented for C#

I tried to find a graph data structure to reuse in C# without any success. Of course, I can borrow …

c# .net data-structures graph-theory
How to prevent edges in graphviz to overlap each other

I have a graph I've created in graphviz, but the problem is that edges overlap each other (I have 5-7 …

graph-theory graphviz overlap
Construct adjacency matrix in MATLAB

Consider a set of points arranged on a grid of size N-by-M. I am trying to build the adjacency matrix …

matlab matrix graph-theory
How to force node position (x and y) in graphviz

I am trying to force position of nodes. I have x and y coordinates of my nodes and its also …

position graph-theory graphviz dot
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
Use Dijkstra's to find a Minimum Spanning Tree?

Dijkstra's is typically used to find the shortest distance between two nodes in a graph. Can it be used to …

algorithm language-agnostic graph-theory dijkstra minimum-spanning-tree
How to determine if two nodes are connected?

I'm concerned that this might be working on an NP-Complete problem. I'm hoping someone can give me an answer as …

graph-theory
What is an incident edge?

Two edges of a graph are called adjacent (sometimes coincident) if they share a common vertex. Two arrows of a …

graph graph-theory terminology
How do you solve the 15-puzzle with A-Star or Dijkstra's Algorithm?

I've read in one of my AI books that popular algorithms (A-Star, Dijkstra) for path-finding in simulation or games is …

artificial-intelligence graph-theory dijkstra a-star
Looking for a simple Java API for creating graphs (edges + nodes)

I'm trying to find a simple Java API for creating graph relationships. It should have some functionality like addEdge(), addNode(), …

java api graph-theory