lemon/smart_graph.h
changeset 1995 c1fc2c14a3ae
parent 1993 2115143eceea
child 1999 2ff283124dfc
equal deleted inserted replaced
18:e32c60881038 19:7d8623651fa5
   502     }
   502     }
   503   
   503   
   504     static int aNodeId(const Node& node) {
   504     static int aNodeId(const Node& node) {
   505       return node.id >> 1;
   505       return node.id >> 1;
   506     }
   506     }
   507     static Node fromANodeId(int id, Node) {
   507     static Node fromANodeId(int id) {
   508       return Node(id << 1);
   508       return Node(id << 1);
   509     }
   509     }
   510     int maxANodeId() const {
   510     int maxANodeId() const {
   511       return aNodes.size();
   511       return aNodes.size();
   512     }
   512     }