PenaltyDAG: now decrease weights of both left and right edge of a fuzzy node
[vspell.git] / libvspell / bellman.h
bloba72ed546a0988ceb07bc3c156a2db95046f73ece
1 #ifndef __BELLMAN_H__ // -*- tab-width: 2 mode: c++ -*-
2 #define __BELLMAN_H__
4 #ifndef __DAG_H__
5 #include "dag.h"
6 #endif
8 /**
9 Bellman shortest path search.
10 The reason to use Bellman-Ford instead of PFS is to be able to find
11 the shortest path with negative weight. Negative weights is made
12 from graph normalization process.
15 class Bellman
17 public:
18 void search(const DAG &dag,Path &seps);
21 #endif