storeGraph() method writes data to graphml-file