lemon/concepts/bpgraph.h
changeset 1028 4441b066368c
parent 1027 8b2b9e61d8ce
child 1049 7bf489cf624e
equal deleted inserted replaced
3:529c54a42a1c 4:6c1e3f9075be
   772       /// Gives back %true for blue nodes.
   772       /// Gives back %true for blue nodes.
   773       bool blue(const Node&) const { return true; }
   773       bool blue(const Node&) const { return true; }
   774 
   774 
   775       /// \brief Converts the node to red node object.
   775       /// \brief Converts the node to red node object.
   776       ///
   776       ///
   777       /// This class is converts unsafely the node to red node
   777       /// This function converts unsafely the node to red node
   778       /// object. It should be called only if the node is from the red
   778       /// object. It should be called only if the node is from the red
   779       /// partition or INVALID.
   779       /// partition or INVALID.
   780       RedNode asRedNodeUnsafe(const Node&) const { return RedNode(); }
   780       RedNode asRedNodeUnsafe(const Node&) const { return RedNode(); }
   781 
   781 
   782       /// \brief Converts the node to blue node object.
   782       /// \brief Converts the node to blue node object.
   783       ///
   783       ///
   784       /// This class is converts unsafely the node to blue node
   784       /// This function converts unsafely the node to blue node
   785       /// object. It should be called only if the node is from the red
   785       /// object. It should be called only if the node is from the red
   786       /// partition or INVALID.
   786       /// partition or INVALID.
   787       BlueNode asBlueNodeUnsafe(const Node&) const { return BlueNode(); }
   787       BlueNode asBlueNodeUnsafe(const Node&) const { return BlueNode(); }
   788 
   788 
   789       /// \brief Converts the node to red node object.
   789       /// \brief Converts the node to red node object.
   790       ///
   790       ///
   791       /// This class is converts safely the node to red node
   791       /// This function converts safely the node to red node
   792       /// object. If the node is not from the red partition, then it
   792       /// object. If the node is not from the red partition, then it
   793       /// returns INVALID.
   793       /// returns INVALID.
   794       RedNode asRedNode(const Node&) const { return RedNode(); }
   794       RedNode asRedNode(const Node&) const { return RedNode(); }
   795 
   795 
   796       /// \brief Converts the node to blue node object.
   796       /// \brief Converts the node to blue node object.
   797       ///
   797       ///
   798       /// This class is converts unsafely the node to blue node
   798       /// This function converts unsafely the node to blue node
   799       /// object. If the node is not from the blue partition, then it
   799       /// object. If the node is not from the blue partition, then it
   800       /// returns INVALID.
   800       /// returns INVALID.
   801       BlueNode asBlueNode(const Node&) const { return BlueNode(); }
   801       BlueNode asBlueNode(const Node&) const { return BlueNode(); }
   802 
   802 
   803       /// \brief Gives back the red end node of the edge.
   803       /// \brief Gives back the red end node of the edge.