About 16,900,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. 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 …

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

  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. Can we have undirected edges and directed edges in a graph

    Oct 31, 2023 · Here, once again, the undirected edges mean something qualitatively different from a pair of directed edges. From the beginning, in fact, a chain graph is required to have no …

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

  7. Can an undirected graph be disconnected? - Mathematics Stack …

    Dec 4, 2018 · Undirected just mean The edges does not have direction. connected means that there is a path from any vertex of the graph to any other vertex in the graph. so take any …

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

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

  10. How to determine the number of directed/undirected graphs?

    For either a directed or undirected graph WITH loops, there can be an infinite number of graphs, because you can always add an infinite number of loops, right? So the number of possible …