Directional Graph code
Helper to print all items in a collection