add graph by Ruby