sample of a graph