double function ( Vertex arg0 ) { if ( arg0 == v1 ) return flow ; else if ( arg0 == v2 ) return ( double ) capacity - flow ; else throw new IllegalArgumentException ( "srini_string" + arg0 . getName ( ) + "srini_string" + v1 . getName ( ) + "srini_string" + v2 . getName ( ) ) ; }
given a vertex v that the edge is pointing to return the residual capacity , be it a forward edge or a backward edge ; concode_field_sep Object name concode_elem_sep Edge back concode_elem_sep Vertex v1 concode_elem_sep Vertex v2 concode_elem_sep double flow concode_elem_sep Object capacity concode_field_sep void setBackEdge concode_elem_sep void setcapacity concode_elem_sep void updateEdgeFlow concode_elem_sep Object getName concode_elem_sep Edge getBackEdge concode_elem_sep Object getcapacity concode_elem_sep Vertex getFirstEndpoint concode_elem_sep void setFlow concode_elem_sep double getFlow concode_elem_sep Vertex getSecondEndpoint concode_elem_sep int remaining