Exemple #1
0
        /// <summary>
        /// Asynchronous remove of edge (or arc) by the referense
        /// </summary>
        /// <param name="edge"></param>
        /// <returns></returns>
        public async Task <Graph <T> > RemoveAsync(IEdge <T> edge)
        {
            edge.Disconnect();
            await _edges.RemoveWithLockAsync(edge, _rwEdgesLock);

            return(this);
        }
Exemple #2
0
        /// <summary>
        /// Remove edge (or arc) by the referense
        /// </summary>
        /// <param name="edge"></param>
        /// <returns></returns>
        public Graph <T> Remove(IEdge <T> edge)
        {
            edge.Disconnect();
            _edges.RemoveWithLock(edge, _rwEdgesLock);

            return(this);
        }