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.

A tree, where each node could have multiple parents

Here's a theoretical/pedantic question: imagine properties where each one could be owned by multiple others. Furthermore, from one iteration …

oop design-patterns tree graph-theory composite
List of C++ libraries for Graph Theory

I'm going to start a scientific project about automata and graph theory, and I'm searching for a graph library that …

c++ graph-theory subgraph isomorphism
How can I cluster a graph in Python?

Let G be a graph. So G is a set of nodes and set of links. I need to find …

python sorting matrix cluster-analysis graph-theory
Modify Dijkstra's Algorithm to get the Shortest Path Between Two Nodes

So I've seen similar questions to this but not quite exactly what I'm looking for. I need to modify Dijkstra's …

data-structures graph graph-theory dijkstra
How to serialize a graph structure?

Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like …

serialization graph-theory
Completeness of depth-first search

I quote from Artificial Intelligence: A Modern Approach: The properties of depth-first search depend strongly on whether the graph-search or …

tree artificial-intelligence graph-theory graph-traversal search-tree
Edge classification in a DFS

According to the book (Intro to Algorithm), in dfs, edges are classified as 4 kinds: Tree Edge, if in edge (u,…

graph-theory depth-first-search edges
Find all complete sub-graphs within a graph

Is there a known algorithm or method to find all complete sub-graphs within a graph? I have an undirected, unweighted …

language-agnostic graph-theory subgraph
Proof of correctness: Algorithm for diameter of a tree in graph theory

In order to find the diameter of a tree I can take any node from the tree, perform BFS to …

algorithm tree graph-theory proof-of-correctness
Vertex cover vs dominating set

I'm trying to understand the difference between vertex cover and dominating set. From what understand, in dominating set, the set …

computer-science graph-theory