added csv2graph method