SONAR-4087 refactor GraphUtil#uniqueAdjacent()
SONAR-4087 fix compatibility of Tinkerpop Blueprints with Java 5