Skip to content
GraphNodeUnvisit

GraphNodeUnvisit

Description

Reset the scratch visit count of a node to zero.

Parameters

Name Direction Description
node in GraphNode handle to clear.

Success

Returns to the caller. The referenced slot’s scratch visit counter is now 0. Graph structure is untouched.

Failure

Does not return - aborts via LOG_FATAL for an invalid or stale node handle (caller bug).

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    void GraphNodeUnvisit(GraphNode node) {
        GenericGraph     *graph;
        GenericGraphSlot *slot;
        result = result && GraphNodeVisited(node) && (GraphNodeVisitCount(node) == 2);
    
        GraphNodeUnvisit(node);
        result = result && !GraphNodeVisited(node) && (GraphNodeVisitCount(node) == 0);
    static void city_reset_visits(CityGraph *graph) {
        GraphForeachNode(graph, node) {
            GraphNodeUnvisit(node);
        }
    }
Last updated on