added sample generation and import/export of graphs from/to file