Exemplo n.º 1
0
        /// <summary>
        /// Returns true if the given vertex was visited and sets the visit output parameters with the actual visit data.
        /// </summary>
        /// <returns></returns>
        public bool TryGetForwardVisit(uint vertex, out EdgePath <T> visit)
        {
            this.CheckHasRunAndHasSucceeded();

            uint vertexPointer;

            if (!_forwardVisits.TryGetValue(vertex, out vertexPointer))
            {
                visit = null;
                return(false);
            }
            visit = _weightHandler.GetPath <T>(_pathTree, vertexPointer);
            return(true);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the path for the vertex at the given pointer.
 /// </summary>
 public EdgePath <T> GetPath(uint pointer)
 {
     return(_weightHandler.GetPath(_pathTree, pointer));
 }