clean adapter
bfs adapter
removed double node flag