make sample of graph