About 17,400,000 results
Open links in new tab
  1. Is Dijkstra's algorithm for directed or undirected graphs?

    In the context of Dijkstra's algorithm, whether the graph is directed or undirected does not matter. Dijkstra's algorithm simply references the adjacent vertices of a vertex. It is this adjacency list that …

  2. algorithm - Cycles in an Undirected Graph - Stack Overflow

    The graph is undirected, and therefore, the when the algorithm inspects an edge, there are only two possibilities: Either it has visited the other end of the edge, or it has and then, this edge closes a …

  3. Are Trees Directed or Undirected Graphs? - Stack Overflow

    Jan 14, 2013 · I have read that Trees are special cases of Graphs. Graphs can be directed or undirected. But if we consider tree as a data structure is it directed or undirected graph?

  4. What is the difference between a directed and undirected graph

    Mar 29, 2018 · 4 The difference is the same as between one directional and bidirectional streets - in directed graph, the direction matters and you can't use the edge in the other direction. An undirected …

  5. Give the minimum and the maximum number of edges in an …

    Nov 24, 2014 · Yes.. The minimum number of edges for undirected connected graph is (n-1) edges. To see this, since the graph is connected then there must be a unique path from every vertex to every …

  6. Finding the max flow of an undirected graph with Ford-Fulkerson

    Given the following undirected graph, how would I find the max-flow/min-cut? Now, I know that in order to solve this, I need to redraw the graph so that it is directed as shown below. However, afte...

  7. DFS in an undirected graph - can it have cross edges?

    Mar 9, 2015 · The most natural answer seems to be affirmative. I have yet to find a counter-example. What do you think? In DFS terminology: Can an edge be a cross-edge in DFS - an edge that leads to …

  8. Undirected graph conversion to tree - Stack Overflow

    Dec 10, 2011 · Given an undirected graph in which each node has a Cartesian coordinate in space that has the general shape of a tree, is there an algorithm to convert the graph into a tree, and find the …

  9. Proving that the number of vertices of odd degree in any graph G is ...

    Jan 23, 2015 · Given $G$ is an undirected graph, the degree of a vertex $v$, denoted by $\mathrm {deg} (v)$, in graph $G$ is the number of neighbors of $v$. Prove that the number of vertices of odd …

  10. Finding all cycles in undirected graphs - Stack Overflow

    Sep 11, 2012 · Finding all cycles in an undirected graph Cycles in an Undirected Graph -> detects only whether there is a cycle or not Finding polygons within an undirected Graph -> very nice description, …