src/work/alpar/list_graph_demo.cc
changeset 904 b40afcf42a4d
parent 426 675bfb074509
child 921 818510fa3d99
equal deleted inserted replaced
2:c9ccf3570100 3:dcd8a98d006f
     5 #include <vector>
     5 #include <vector>
     6 
     6 
     7 using namespace hugo;
     7 using namespace hugo;
     8 
     8 
     9 typedef ListGraph Graph;
     9 typedef ListGraph 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;