Skip to main content
deleted 52 characters in body; edited title
Source Link
rm -rf
  • 89.3k
  • 21
  • 297
  • 479

Finding all shortest paths between two vertexesvertices

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

  I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

MotivationMy graph has weighted edges and the weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

EDIT: My apologies for not already mentioning this, but my graph has weighted edges. The weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

Finding all shortest paths between two vertexes

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

  I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

EDIT: My apologies for not already mentioning this, but my graph has weighted edges. The weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

Finding all shortest paths between two vertices

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph. I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

My graph has weighted edges and the weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

Added a detail about the problem
Source Link
rjkaplan
  • 1.1k
  • 1
  • 8
  • 15

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

EDIT: My apologies for not already mentioning this, but my graph has weighted edges. The weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

EDIT: My apologies for not already mentioning this, but my graph has weighted edges. The weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.

Tweeted twitter.com/#!/StackMma/status/190004258530279424
added 4 characters in body
Source Link
Szabolcs
  • 236.5k
  • 31
  • 641
  • 1.3k

The built-in FindShortestPathFindShortestPath and GraphDistanceGraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

The built-in FindShortestPath and GraphDistance functions find the shortest path between two particular vertices in a graph.

I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?

Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.

Source Link
rjkaplan
  • 1.1k
  • 1
  • 8
  • 15
Loading