Пример #1
0
        /// <summary>
        /// Returns a list of all edges in the graph, such that start from particular vertex
        /// </summary>
        public List <IEdge <T> > EdgesToAdjacentVertices(IVertex <T> vertex)
        {
            if (!ContainsVertex(vertex))
            {
                throw new InvalidOperationException("Vertex does not belong to the graph.");
            }

            return(vertex.EdgesToAdjacentVertices());
        }