add specs for graph_helper