improving the graph interface