Method: RGL::Graph#each_vertex
- Defined in:
- lib/rgl/base.rb
#each_vertex(&block) ⇒ Object
The each_vertex
iterator defines the set of vertices of the graph. This method must be defined by concrete graph classes. It defines the BGL VertexListGraph concept.
143 144 145 |
# File 'lib/rgl/base.rb', line 143 def each_vertex(&block) # :yields: v raise NotImplementedError end |