public int C(int asal,int tujuan){
        Koneksi conn=new Koneksi();
        ResultSet res=null;
        int ij=0;
        String query="SELECT f_jarak FROM data WHERE f_asal="+asal+" AND f_tujuan="+tujuan;

        try{
            res=conn.getStatement().executeQuery(query);
            while(res.next()){
                ij=Integer.parseInt(res.getString("f_jarak"));
            }
        }catch(SQLException ex){
            JOptionPane.showMessageDialog(this, "Error: Query Error");
        }return ij;
    }