boolean function ( G arg0 , V arg1 , V arg2 , E arg3 ) { if ( arg1 != arg2 ) { if ( ! arg1 . getNeighbours ( ) . contains ( arg2 ) ) { arg3 . setVertices ( new Tuple < SparseVertex , SparseVertex > ( arg1 , arg2 ) ) ; arg1 . addEdge ( arg3 ) ; arg2 . addEdge ( arg3 ) ; return arg0 . insertEdge ( arg3 ) ; } else return false ; } else return false ; }
inserts edge into graph between v_i and v_j and assures the correct connectivity between vertices and edges . concode_field_sep GraphFactory<G,V,E> factory concode_field_sep boolean insertVertex concode_elem_sep boolean removeEdge concode_elem_sep G copyGraph concode_elem_sep G createGraph concode_elem_sep boolean removeVertex concode_elem_sep GraphFactory<G,V,E> getFactory concode_elem_sep V addVertex concode_elem_sep E addEdge