updated GraphLayout to handle angled vertices