Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
brief todo More...
#include <Geodesic_distances_generation.hpp>
Public Member Functions | |
Graph::vertices_size_type | count_landmarks () |
this is useful to preallocate the result to structure to be used in k_dijkstra_on_landmarks More... | |
void | k_dijkstra_on_landmarks (unsigned k, std::ostream &result, std::ostream &landmarksInfoOutput) |
brief todo
details todo.
Graph::vertices_size_type count_landmarks |
this is useful to preallocate the result to structure to be used in k_dijkstra_on_landmarks
void k_dijkstra_on_landmarks | ( | unsigned | k, |
std::ostream & | result, | ||
std::ostream & | landmarksInfoOutput | ||
) |
main function computes the k shortest distances to other landmarks from each landmark and outputs the result to an ostream it uses for each landmark a truncated version of dijkstra's algorithm that stops when k other landmarks where visited the greedy-optimal nature of dijkstra's algorithm guarantees that the distances to these k landmarks are indeed the shortest ones