Improved BipartiteGraph code, BipartiteGraph and Graph unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 23 Mar 2010 08:53:41 +0000 (09:53 +0100)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 23 Mar 2010 08:53:41 +0000 (09:53 +0100)
commit9f310101af4a9bf61a937c0582e775e45c28a4b1
tree0464c166a978d338b017121dc4ce1625aec48a9c
parent33479478669cba717d09c37a0e80a45a42d2a43e
Improved BipartiteGraph code, BipartiteGraph and Graph unit tests

- Added BipartiteGraph::hasEdge()
- Added BipartiteGraph::findNb1()
- Added BipartiteGraph::findNb2()
- BipartiteGraph::delta1() and BipartiteGraph::delta2() now
  return a SmallSet<size_t> instead of a vector<size_t>
- The sizeHint argument of the iterator constructor
    SmallSet::SmallSet( TIterator begin, TIterator end, size_t sizeHint=0 )
  no longer has a default value in order to avoid confusion with the
    SmallSet::SmallSet( const T &t1, const T &t2 )
  constructor.
- Improved BipartiteGraph unit test cases
- Improved Graph unit test cases
ChangeLog
include/dai/bipgraph.h
include/dai/graph.h
include/dai/smallset.h
src/bipgraph.cpp
src/clustergraph.cpp
tests/unit/bipgraph.cpp
tests/unit/graph.cpp
tests/unit/smallset.cpp