how is a graph similar to a data table