Sha256: e2e3ab27b2782911d9beea119d94b2b6b826472364cc88131e872645a918bf78
Contents?: true
Size: 841 Bytes
Versions: 7
Compression:
Stored size: 841 Bytes
Contents
module Pacer module Neo4j2 module Algo module Wrapping import org.neo4j.graphdb.Node import org.neo4j.graphdb.Relationship import com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Vertex import com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Edge private def wrap_path(p) p.collect do |e| if e.is_a? Node wrap_vertex e elsif e.is_a? Relationship wrap_edge e else e end end end def wrap_vertex(v) Pacer::Wrappers::VertexWrapper.new graph, Neo4j2Vertex.new(v, graph.blueprints_graph) end def wrap_edge(e) Pacer::Wrappers::EdgeWrapper.new graph, Neo4j2Edge.new(e, graph.blueprints_graph) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems