graph stuff was compiled twice

now it's a lib that is linked into both executables