Class: Cmap::PropositionsToGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/cmap/propositions_to_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(propositions_path) ⇒ PropositionsToGraph

Returns a new instance of PropositionsToGraph.



5
6
7
8
# File 'lib/cmap/propositions_to_graph.rb', line 5

def initialize(propositions_path)
  @propositions_path = propositions_path
  @vertices = []
end

Instance Attribute Details

#propositions_pathObject (readonly)

Returns the value of attribute propositions_path.



3
4
5
# File 'lib/cmap/propositions_to_graph.rb', line 3

def propositions_path
  @propositions_path
end

Instance Method Details

#graphObject



10
11
12
# File 'lib/cmap/propositions_to_graph.rb', line 10

def graph
  DirectedGraph::Graph.new(edges)
end