@Override
public Iterator<Vertex> vertices(final Direction direction) {
if (direction.equals(Direction.OUT))
return IteratorUtils.of(this.outVertex());
if (direction.equals(Direction.IN))
return IteratorUtils.of(this.inVertex());
elsereturn IteratorUtils.of(this.outVertex(), this.inVertex());
}
@Override
public Iterator<Vertex> vertices(final Direction direction) {
if (direction.equals(Direction.OUT))
return IteratorUtils.of(this.outVertex());
if (direction.equals(Direction.IN))
return IteratorUtils.of(this.inVertex());
elsereturn IteratorUtils.of(this.outVertex(), this.inVertex());
}