53#ifndef vtkAdjacentVertexIterator_h
54#define vtkAdjacentVertexIterator_h
56#include "vtkCommonDataModelModule.h"
98 bool HasNext() {
return this->Current != this->End; }
Iterates through adjacent vertices in a graph.
~vtkAdjacentVertexIterator() override
vtkIdType Next()
Returns the next edge in the graph.
bool HasNext()
Whether this iterator has more edges.
virtual void SetGraph(vtkGraph *graph)
Protected method for setting the graph used by Initialize().
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const vtkOutEdgeType * End
const vtkOutEdgeType * Current
static vtkAdjacentVertexIterator * New()
void Initialize(vtkGraph *g, vtkIdType v)
Initialize the iterator with a graph and vertex.
vtkAdjacentVertexIterator()
Representation of a single graph edge.
Base class for graph data types.
a simple class to control print indentation
abstract base class for most VTK objects