About 14,000,000 results
Open links in new tab
  1. What is the difference between a directed and undirected graph

    Mar 29, 2018 · 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 …

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

  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 closes a …

  4. 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 cycles made …

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

  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 disconnected graph …

  8. how can a breadth-first-search-tree include a cross-edge?

    Sep 29, 2016 · The process of building a spanning tree using BFS over an undirected graph would generate the following types of edges: Tree edges Cross edges (connecting vertices on different …

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

  10. vertices - Undirected connected graphs - Stack Overflow

    I'm confused as to whether an undirected graph can be considered connected? For example: A---B---C Say that we have three vertices, A, B and C. If the graph is undirected like the one above, is it