classalgo_1_1KShortestPaths.tex 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. \hypertarget{classalgo_1_1KShortestPaths}{}\section{algo\+:\+:K\+Shortest\+Paths Class Reference}
  2. \label{classalgo_1_1KShortestPaths}\index{algo\+::\+K\+Shortest\+Paths@{algo\+::\+K\+Shortest\+Paths}}
  3. {\ttfamily \#include $<$K\+Shortest\+Paths.\+h$>$}
  4. \subsection*{Public Member Functions}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. \hyperlink{classalgo_1_1KShortestPaths_a2805f56b9abb112f10c752d125d623d8}{K\+Shortest\+Paths} (Directed\+Graph graph, Vertex source, Vertex sink)
  8. \item
  9. Multi\+Predecessor\+Map \hyperlink{classalgo_1_1KShortestPaths_ae77137136462303e951f631ba7db6adf}{Run} (size\+\_\+t max\+\_\+path\+\_\+count)
  10. \end{DoxyCompactItemize}
  11. \subsection{Detailed Description}
  12. Class providing a k-\/shortest-\/paths algorithm implementation.
  13. \subsection{Constructor \& Destructor Documentation}
  14. \index{algo\+::\+K\+Shortest\+Paths@{algo\+::\+K\+Shortest\+Paths}!K\+Shortest\+Paths@{K\+Shortest\+Paths}}
  15. \index{K\+Shortest\+Paths@{K\+Shortest\+Paths}!algo\+::\+K\+Shortest\+Paths@{algo\+::\+K\+Shortest\+Paths}}
  16. \subsubsection[{\texorpdfstring{K\+Shortest\+Paths(\+Directed\+Graph graph, Vertex source, Vertex sink)}{KShortestPaths(DirectedGraph graph, Vertex source, Vertex sink)}}]{\setlength{\rightskip}{0pt plus 5cm}algo\+::\+K\+Shortest\+Paths\+::\+K\+Shortest\+Paths (
  17. \begin{DoxyParamCaption}
  18. \item[{Directed\+Graph}]{graph, }
  19. \item[{Vertex}]{source, }
  20. \item[{Vertex}]{sink}
  21. \end{DoxyParamCaption}
  22. )}\hypertarget{classalgo_1_1KShortestPaths_a2805f56b9abb112f10c752d125d623d8}{}\label{classalgo_1_1KShortestPaths_a2805f56b9abb112f10c752d125d623d8}
  23. Initializes the k-\/shortest-\/paths algorithm for the given graph. Uses the source vertex as starting and the sink vertex as target vertex.
  24. \begin{DoxyParams}{Parameters}
  25. {\em graph} & The graph to work with \\
  26. \hline
  27. {\em source} & The starting vertex \\
  28. \hline
  29. {\em sink} & The target vertex \\
  30. \hline
  31. \end{DoxyParams}
  32. \subsection{Member Function Documentation}
  33. \index{algo\+::\+K\+Shortest\+Paths@{algo\+::\+K\+Shortest\+Paths}!Run@{Run}}
  34. \index{Run@{Run}!algo\+::\+K\+Shortest\+Paths@{algo\+::\+K\+Shortest\+Paths}}
  35. \subsubsection[{\texorpdfstring{Run(size\+\_\+t max\+\_\+path\+\_\+count)}{Run(size_t max_path_count)}}]{\setlength{\rightskip}{0pt plus 5cm}Multi\+Predecessor\+Map algo\+::\+K\+Shortest\+Paths\+::\+Run (
  36. \begin{DoxyParamCaption}
  37. \item[{size\+\_\+t}]{max\+\_\+path\+\_\+count}
  38. \end{DoxyParamCaption}
  39. )}\hypertarget{classalgo_1_1KShortestPaths_ae77137136462303e951f631ba7db6adf}{}\label{classalgo_1_1KShortestPaths_ae77137136462303e951f631ba7db6adf}
  40. Runs the algorithm to find the given number of shortest paths. The actual number of paths found is the number of entries in the Multi\+Predecessor\+Map with the sink vertex as the key.
  41. \begin{DoxyParams}{Parameters}
  42. {\em max\+\_\+path\+\_\+count} & The maximum number of paths to find \\
  43. \hline
  44. \end{DoxyParams}
  45. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  46. \item
  47. algo/K\+Shortest\+Paths.\+h\item
  48. algo/K\+Shortest\+Paths.\+cpp\end{DoxyCompactItemize}