grpah and main files