Finding derivatives from a graph