Fixed graph.rs build (needs tests)