printing graphs