move alternative Graph implementation in own module