introduced createGraphFile method