src/work/alpar/smart_graph_demo.cc
changeset 880 9d0bfd35b97c
parent 185 259540358bbf
child 921 818510fa3d99
equal deleted inserted replaced
2:d592c0d01713 3:b3515a761b92
     5 #include <vector>
     5 #include <vector>
     6 
     6 
     7 using namespace hugo;
     7 using namespace hugo;
     8 
     8 
     9 typedef SmartGraph Graph;
     9 typedef SmartGraph Graph;
    10 //typedef GraphSkeleton Graph;
    10 //typedef Graph Graph;
    11 
    11 
    12 
    12 
    13 Graph::OutEdgeIt safeFirstOut(const Graph &G, Graph::Node n)
    13 Graph::OutEdgeIt safeFirstOut(const Graph &G, Graph::Node n)
    14 {
    14 {
    15   return G.valid(n) ? Graph::OutEdgeIt(G,n):INVALID;
    15   return G.valid(n) ? Graph::OutEdgeIt(G,n):INVALID;