toString method
Returns a string representation of the weighted directed graph.
Implementation
@override
String toString() {
var b = StringBuffer();
final q = (T == String) ? '\'' : '';
b.writeln('{');
for (final vertex in sortedVertices) {
b.write(' $q$vertex$q: ');
b.write('{');
b.writeAll(
_edges[vertex]!.keys.map<String>((key) => '$q$key$q: '
'${_edges[vertex]![key]}'),
', ');
b.write('},');
b.writeln('');
}
b.write('}');
return b.toString();
}