Skip to content

Commit

Permalink
Graph
Browse files Browse the repository at this point in the history
-  Documented `toString()`
  • Loading branch information
deavmi committed May 4, 2024
1 parent c3287bf commit 0525bfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/niknaks/containers.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0525bfb

Please sign in to comment.