Open
Graph Drawing
Framework

 v.2012.05
 

ShortestPathWithBFM.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00044 #ifdef _MSC_VER
00045 #pragma once
00046 #endif
00047 
00048 #ifndef OGDF_SHORTEST_PATH_BFM_H
00049 #define OGDF_SHORTEST_PATH_BFM_H
00050 
00051 
00052 #include <ogdf/module/ShortestPathModule.h>
00053 
00054 
00055 namespace ogdf {
00056 
00057 class OGDF_EXPORT ShortestPathWithBFM : public ShortestPathModule
00058 {
00059 public:
00060     ShortestPathWithBFM() { }
00061 
00062     // computes shortest paths
00063     // Precond.: 
00064     //   
00065     // returns false iff the graph contains a negative cycle
00066     bool call(
00067         const Graph &G,                   // directed graph
00068         const node s,                     // source node
00069         const EdgeArray<int> &length,     // length of an edge
00070         NodeArray<int> &d,                // contains shortest path distances after call
00071         NodeArray<edge> &pi
00072     );  
00073 
00074 
00075 };
00076 
00077 
00078 } // end namespace ogdf
00079 
00080 
00081 #endif