completed some methods for the graph interface and stuff ;)