Add dependency for the graph library