answersLogoWhite

0

If u want 2 find shortest path between any 2 nodes

tak 1 source vertice and 1 destination vertice

the minimum number of vertices which comes while traversing from source to destination vertice will give you ur answer

that is,try to cover minimum o of vertices whil traversing.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How many nodes are in a family branch tree in graph theory?

In Mathematics and Computer Science, the graph theory is just the theory of graphs basically overall. It's basically the relationship between objects. The nodes are just lines that connects the graph. There are a total of six nodes in a family branch tree for a graph theory basically.


What is spanning tree in data structure?

A spanning tree is a tree associated with a network. All the nodes of the graph appear on the tree once. A minimum spanning tree is a spanning tree organized so that the total edge weight between nodes is minimized.


What is Dijkstra's algorithm?

Dijkstra's algorithm is used by the OSPF and the IS-IS routing protocols. The last three letters in OSPF (SPF) mean "shortest path first", which is an alternative name for Dijkstra's algorithm.


How do you get edge value between two nodes in graph using java?

That depends how the data is stored. If you use predesigend classes to store information about nodes and edges, check the documentation of the specific class or classes. Or ask a question here, specifiying the class you are using.


What is the difference between Local Bridge and Remote Bridge?

Local bridges are ties between two nodes in a social graph that are the shortest (and often the only plausible) route by which information might travel from those connected to one to those connected to the other. [2] Local bridges differ from regular bridges in that the end points of the local bridge cannot have a tie directly between them and should not share any common neighbors. never found any answers in answers. sucks

Related Questions

What is the algorithm to find all shortest paths between two nodes in a graph?

One common algorithm to find all shortest paths between two nodes in a graph is the Floyd-Warshall algorithm. This algorithm calculates the shortest paths between all pairs of nodes in a graph by considering all possible intermediate nodes.


What is the shortest path in a directed graph between two nodes?

The shortest path in a directed graph between two nodes is the path with the fewest number of edges or connections between the two nodes. This path is determined by algorithms like Dijkstra's or Bellman-Ford, which calculate the shortest distance between nodes based on the weights assigned to the edges.


What is the process and significance of implementing breadth first search in a graph traversal algorithm?

Breadth-first search is a graph traversal algorithm that explores all the neighboring nodes at the current depth before moving on to nodes at the next depth. This process continues until all nodes have been visited. Implementing breadth-first search helps in finding the shortest path between two nodes in a graph. It is significant because it guarantees the shortest path and can be used in various applications such as network routing, social network analysis, and web crawling.


How does the bidirectional A algorithm work to efficiently find the shortest path between two points in a graph by simultaneously exploring from both the start and goal nodes?

The bidirectional A algorithm efficiently finds the shortest path between two points in a graph by exploring from both the start and goal nodes simultaneously. It uses two separate searches that meet in the middle, reducing the overall search space and improving efficiency compared to traditional A algorithm.


Can you provide an example of breadth first search in a graph?

In a breadth-first search (BFS) algorithm, we start at a specific node in a graph and explore all its neighboring nodes before moving on to the next level of nodes. An example of BFS in a graph could be finding the shortest path between two cities on a map by exploring all possible routes in a systematic manner.


What is the relationship between Dijkstra's algorithm and breadth-first search in graph traversal?

Dijkstra's algorithm is a more advanced version of breadth-first search in graph traversal. While both algorithms explore nodes in a graph, Dijkstra's algorithm considers the weight of edges to find the shortest path, whereas breadth-first search simply explores nodes in a level-by-level manner.


How many nodes are in a family branch tree in graph theory?

In Mathematics and Computer Science, the graph theory is just the theory of graphs basically overall. It's basically the relationship between objects. The nodes are just lines that connects the graph. There are a total of six nodes in a family branch tree for a graph theory basically.


How can you design an algorithm to check if a given graph is connected?

Use a simple DFS/BFS traversal. If you have gone through all nodes, the graph is connected.


What is the most efficient way to find the shortest path in a directed acyclic graph?

One efficient way to find the shortest path in a directed acyclic graph is to use a topological sorting algorithm, such as the topological sort algorithm. This algorithm can help identify the order in which the nodes should be visited to find the shortest path from a starting node to a destination node. By following the topological order and calculating the shortest path for each node, you can determine the overall shortest path in the graph.


What are three things that a graph needs?

A graph needs nodes (vertices) to represent entities, edges (links) to represent relationships between entities, and a structure (topology) that defines how nodes and edges are connected.


What are the different types of edges found in graph theory and how do they impact the connectivity of a graph?

In graph theory, the different types of edges are directed edges and undirected edges. Directed edges have a specific direction, while undirected edges do not. The type of edges in a graph impacts the connectivity by determining how nodes are connected and how information flows between them. Directed edges create a one-way connection between nodes, while undirected edges allow for two-way connections. This affects the paths that can be taken between nodes and the overall structure of the graph.


What are the differences between an edge list and an adjacency list in graph theory?

In graph theory, an edge list is a simple list that shows the connections between nodes in a graph by listing the pairs of nodes that are connected by an edge. An adjacency list, on the other hand, is a more structured representation that lists each node and its neighboring nodes. The main difference is that an edge list focuses on the edges themselves, while an adjacency list focuses on the nodes and their connections.