read datamem
add graph