2020-02-21 02:43:25 +00:00
|
|
|
namespace MoonTools.Graph
|
2019-10-24 01:47:48 +00:00
|
|
|
{
|
2019-10-24 08:10:49 +00:00
|
|
|
public class DirectedMultiGraph<TNode, TEdgeData> : MultiGraph<TNode, TEdgeData>, IUnweightedGraph<TNode, TEdgeData> where TNode : System.IEquatable<TNode>
|
2019-10-24 01:47:48 +00:00
|
|
|
{
|
|
|
|
public void AddEdge(TNode v, TNode u, TEdgeData edgeData)
|
|
|
|
{
|
|
|
|
BaseAddEdge(v, u, edgeData);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void AddEdges(params (TNode, TNode, TEdgeData)[] edges)
|
|
|
|
{
|
|
|
|
foreach (var edge in edges)
|
|
|
|
{
|
|
|
|
AddEdge(edge.Item1, edge.Item2, edge.Item3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-21 02:43:25 +00:00
|
|
|
}
|