-  Documented `toString()`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-04 10:39:17 +02:00
parent c3287bf474
commit 0525bfb95e
1 changed files with 6 additions and 0 deletions

View File

@ -1023,6 +1023,12 @@ public class Graph(T)
return collected;
}
/**
* Returns a string representation
* of this node and its value
*
* Returns: a `string`
*/
public override string toString()
{
return format("GraphNode [val: %s]", this.value);