Method: Bio::Pathway#undirected

Defined in:
lib/bio/pathway.rb

#undirectedObject

Changes the internal state of the graph from ‘directed’ to ‘undirected’ and re-generate adjacency list.

Note: this method can not be used without the list of the Bio::Relation objects (internally stored in @relations variable). Thus if you already called clear_relations! method, call to_relations first.



107
108
109
110
111
112
# File 'lib/bio/pathway.rb', line 107

def undirected
  if directed?
    @undirected = true
    self.to_list
  end
end