/// <summary>
        /// Gets the location of the given vertex.
        /// </summary>
        /// <returns></returns>
        public static GeoCoordinateSimple GetLocation <TEdgeData>(this IGraphReadOnly <TEdgeData> graph, uint vertex)
            where TEdgeData : struct, IGraphEdgeData
        {
            float latitude, longitude;

            if (!graph.GetVertex(vertex, out latitude, out longitude))
            {
                throw new Exception("Vertex not found.");
            }
            return(new GeoCoordinateSimple()
            {
                Latitude = latitude,
                Longitude = longitude
            });
        }