Beispiel #1
0
        /// <inheritdoc />
        protected override Edge AddEdge(TEdge edge)
        {
            if (edge == null)
            {
                throw new ArgumentNullException(nameof(edge));
            }

            return(MsaglGraph.AddEdge(
                       _verticesIds[edge.Source],
                       _verticesIds[edge.Target]));
        }
Beispiel #2
0
 /// <inheritdoc />
 protected override Edge AddEdge(TEdge edge)
 {
     return(MsaglGraph.AddEdge(
                _vertexIdentity(edge.Source),
                _vertexIdentity(edge.Target)));
 }