export function should not take a graphview AND a scheduler
This is redundant and error prone as a user can give a scheduler that does not containt the graphview given as an argument.
Instead I think that the export function should retrieve the graphview from the scheduler