fix bugs in bfs
plot without lines