Esempio n. 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]));
        }
Esempio n. 2
0
 /// <inheritdoc />
 protected override Edge AddEdge(TEdge edge)
 {
     return(MsaglGraph.AddEdge(
                _vertexIdentity(edge.Source),
                _vertexIdentity(edge.Target)));
 }