Skip to content

Commit

Permalink
Merge pull request #79 from AzuxirenLeadGuy/master
Browse files Browse the repository at this point in the history
WeightedGraph
Map and Graph Changes
Omnitree Bug Fix
  • Loading branch information
ZacharyPatten committed Jun 3, 2021
2 parents 8c1822b + 78faf7a commit db7ad6d
Show file tree
Hide file tree
Showing 15 changed files with 1,186 additions and 180 deletions.
5 changes: 2 additions & 3 deletions Examples/DataStructures/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using Towel;
using Towel.DataStructures;
using Towel.Mathematics;
using static Towel.Statics;

namespace DataStructures
Expand Down Expand Up @@ -496,7 +495,7 @@ static CompareResult Priority(int a, int b)
Console.WriteLine();

Console.WriteLine(" Traversal: ");
mapHashLinked.Stepper((value, key) => Console.WriteLine($" {key}->{value}"));
mapHashLinked.Pairs(pair => Console.WriteLine($" {pair.Key}->{pair.Value}"));
Console.WriteLine();

int a = random.Next(0, test);
Expand Down Expand Up @@ -799,7 +798,7 @@ static CompareResult Priority(int a, int b)
Console.WriteLine();

Console.WriteLine(" Edges (Traversal): ");
graphSetOmnitree.Stepper((from, to) => Console.WriteLine($" {from}->{to}"));
graphSetOmnitree.Edges(edge => Console.WriteLine($" {edge.Item1}->{edge.Item2}"));
Console.WriteLine();

int a = random.Next(0, test);
Expand Down
12 changes: 12 additions & 0 deletions Sources/Towel/DataStructures/DataStructure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ public static class DataStructure
/// <returns>The resulting status of the iteration.</returns>
internal static void Stepper_O_n_step_XML() => throw new DocumentationMethodException();

#pragma warning restore CS1572 // XML comment has a param tag, but there is no parameter by that name
#pragma warning restore CS1711 // XML comment has a typeparam tag, but there is no type parameter by that name

#pragma warning disable CS1711 // XML comment has a typeparam tag, but there is no type parameter by that name
#pragma warning disable CS1572 // XML comment has a param tag, but there is no parameter by that name

/// <summary>Invokes a method for each entry in the data structure.</summary>
/// <typeparam name="Step">The method to invoke on each item in the structure.</typeparam>
/// <param name="step">The method to invoke on each item in the structure.</param>
/// <returns>The resulting status of the iteration.</returns>
internal static void Stepper_XML() => throw new DocumentationMethodException();

#pragma warning restore CS1572 // XML comment has a param tag, but there is no parameter by that name
#pragma warning restore CS1711 // XML comment has a typeparam tag, but there is no type parameter by that name

Expand Down

0 comments on commit db7ad6d

Please sign in to comment.