Method: RGL::Graph#each_adjacent

Defined in:
lib/rgl/base.rb

#each_adjacent(v, &block) ⇒ Object

The each_adjacent iterator defines the out edges of vertex v. This method must be defined by concrete graph classes. Its defines the BGL IncidenceGraph concept.

Parameters:

  • v

    a vertex of the graph

Raises:

  • (NotImplementedError)


152
153
154
# File 'lib/rgl/base.rb', line 152

def each_adjacent(v, &block) # :yields: v
  raise NotImplementedError
end