added setGateways and path to GraphExamples