Learn R Programming

stringgaussnet (version 1.1)

findShortestPathways: Find shortest pathways between selected nodes

Description

This functions finds shortest pathways between selected nodes in a distance matrix.

Usage

findShortestPathways(BetweenNodesDistances, SelectedNodes)

Arguments

BetweenNodesDistances
A distance matric computed by convertToDistGraph()
SelectedNodes
The selected nodes to keep after shortest paths conversion

Value

  • A list with distances, intermediates and number of intermediates given by the igraph package

Details

The Dijkstra's algorithm from the igraph package is used to compute shortest paths.

See Also

getShortestPaths, convertToDistGraph