Permalink
Browse files

just cleaning up

  • Loading branch information...
mikederrick committed Sep 28, 2012
1 parent fed51e7 commit 4627b78e260b308aebac5813105bcc918dee2f6d
Showing with 1 addition and 11 deletions.
  1. +1 −11 run.rb
View
12 run.rb
@@ -6,15 +6,9 @@
graph = Pacer.neo4j(neo4j_file)
-# For now, building the graph by hand...
-# Looks like we can use https://github.com/pangloss/pacer/blob/develop/lib/pacer/graph/graph_ml.rb
-# to import GraphML
root = graph.create_vertex
presby = graph.create_vertex
-# All of the Time.now.to_i junk is because create_edge requires an edge ID...pretty lame, but it
-# looks like there's a TODO to make it optional:
-# https://github.com/pangloss/pacer/blob/develop/lib/pacer/graph/pacer_graph.rb#L142
graph.create_edge(Time.now.to_i, root, presby, 'Presby')
emergency_department = graph.create_vertex
@@ -26,11 +20,7 @@
ambulance = graph.create_vertex(type: 'Clinicial Decision', question: 'Did the patient arrive by ambulance?')
graph.create_edge(Time.now.to_i, chest_pain, ambulance, 'V1')
-# For some reason, boolean properties are stored on the vertex.
-# See https://github.com/pangloss/pacer/blob/develop/lib/pacer/graph/pacer_graph.rb#L128 for the raw implementation.
yes_task_group = graph.create_vertex(type: 'Task Group', prioritized: false)
graph.create_edge(Time.now.to_i, ambulance, yes_task_group, 'Yes')
-# puts "yes_task_group.properties (notice the missing 'prioritized' property) => #{yes_task_group.properties.inspect}"
-# Sample graph traversal wth Pacer:
-puts graph.v.out('Presby').out('Emergency Department').out('Chest Pain').out('V1').properties.inspect
+puts graph.v.out('Presby').out('Emergency Department').out('Chest Pain').out('V1').properties.inspect

0 comments on commit 4627b78

Please sign in to comment.