Add Graph by Java