refactor tikzit export code into graphview so it can be reused