removed sys.exit after creating graph