Function LayerGridGraph.CountNodes
        
                CountNodes
        
                ()
    
            
            Number of nodes in the graph.
                Public
            
        int CountNodes ()
Number of nodes in the graph.
Note that this is, unless the graph type has overriden it, an O(n) operation.
This is an O(1) operation for grid graphs and point graphs. For layered grid graphs it is an O(n) operation.