About 11,800,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 …

  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 …

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

    May 30, 2014 · 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 …

  4. 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?

  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 …

  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, …

  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 …

  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 …

  9. 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 …

  10. Can we apply the Bellman-Ford algorithm to an Undirected Graph?

    Feb 9, 2013 · As a matter of fact any undirected graph is also a directed graph. You just have to specify any edges {u, v} twice (u, v) and (v, u). But don't forget, that this also means any edge …