remove dead code
add some Graph tests