Module: Pacer::Utils::GraphAnalysis::Vertices::Route

Defined in:
lib/pacer/utils/graph_analysis.rb

Instance Method Summary collapse

Instance Method Details

#in_edge_typesObject



94
95
96
97
98
99
# File 'lib/pacer/utils/graph_analysis.rb', line 94

def in_edge_types
  all_edges = graph.v(Edges)
  in_e.labels.uniq.inject(all_edges) do |route, label|
    route.branch { |b| b.filter(:label => label) }
  end.v.v(Edges)
end

#out_edge_typesObject



87
88
89
90
91
92
# File 'lib/pacer/utils/graph_analysis.rb', line 87

def out_edge_types
  all_edges = graph.v(Edges)
  out_e.labels.uniq.inject(all_edges) do |route, label|
    route.branch { |b| b.filter(:label => label) }
  end.v.v(Edges)
end

#property_variationsObject



101
102
103
# File 'lib/pacer/utils/graph_analysis.rb', line 101

def property_variations
  out_e(:properties).in_v(Properties)
end