graph nodes now represent switches and the links between them