Merged regiongraph.* and daialg.* from SVN head,