processing of sample data into node/edge lists