public static bool SetVertex <T>(this IDirectedGraph <T> graph, T value) where T : IEquatable <T>
        {
            if (graph is null)
            {
                throw new ArgumentNullException(nameof(graph));
            }

            var vertex = new Vertex <T>(value);

            return(graph.SetVertex(vertex));
        }