creating graph nodes based on switch and host data