Reading a graph through its gradient