Returns the current node in the enumeration, your "place" in the enumeration.
When the iterator is first supplied or when it is Reset , there is no current element (calling this method in such a case should raise an exception). Only after the first call to the NextElement method will this method return a value.
Unlike the GGraph.TGGraphNodesEnumerator.NextElement method which returns a new node every time you call it, this method always returns the same value no matter how many times you call it (until NextElement is called, of course).
Returns the next node in the enumeration. If there are no more nodes, the method will raise an exception.
To check if there are more items, use the HasMoreElements method. The NextElement method advances its place in the enumeration and then returns that node. Every call to NextElement returns a new item (until the end of the enumeration). If you wish to access the current item multiple times in a loop, use the GGraph.TGGraphNodesEnumerator.CurrentElement method.