interface for graph returns a collection again for the getnodes method
fixed eclipse warnings