Skip to content

Commit

Permalink
GraphMap: remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Jun 7, 2021
1 parent 52c1f02 commit 083257f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
15 changes: 0 additions & 15 deletions Sources/Towel/DataStructures/Graph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,21 +413,6 @@ public bool TryRemove(T start, T end, out Exception? exception)
return false;
}

/// <summary>Removes an edge from the graph.</summary>
/// <param name="start">The starting point of the edge to remove.</param>
/// <param name="end">The ending point of the edge to remove.</param>
[Obsolete("delete me", true)]
public void Remove(T start, T end)
{
if (_map.Contains(start) && _map.Contains(end) && _map[start].Outgoing.Contains(end))
{
_map[start].Outgoing.Remove(end);
_map[end].Incoming.Remove(start);
_edges--;
}
else throw new InvalidOperationException("Removing a non-existing edge from the graph.");
}

/// <summary>Checks for adjacency between two nodes.</summary>
/// <param name="a">The first node of the adjacency check.</param>
/// <param name="b">The second node fo the adjacency check.</param>
Expand Down
5 changes: 0 additions & 5 deletions Sources/Towel/Towel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -895,11 +895,6 @@
<param name="exception">The exception that occurred if the remove failed.</param>
<returns>True if the remove succeeded or false if not.</returns>
</member>
<member name="M:Towel.DataStructures.GraphMap`3.Remove(`0,`0)">
<summary>Removes an edge from the graph.</summary>
<param name="start">The starting point of the edge to remove.</param>
<param name="end">The ending point of the edge to remove.</param>
</member>
<member name="M:Towel.DataStructures.GraphMap`3.Adjacent(`0,`0)">
<summary>Checks for adjacency between two nodes.</summary>
<param name="a">The first node of the adjacency check.</param>
Expand Down

0 comments on commit 083257f

Please sign in to comment.