saveGraphMatrix