module Pacer
  module Neo4j2
    class RawVertexWrappingPipe < Pacer::Pipes::RubyPipe
      import com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Vertex

      attr_reader :graph

      def initialize(graph)
        super()
        @graph = graph.blueprints_graph
      end

      def processNextStart
        Neo4j2Vertex.new starts.next, graph
      end
    end
  end
end