void splitCycle(){ //cycles[activeCycle] jest "przycinany" !!!!!!???????!!!!!
		Cycle oldC = cycles[activeCyc.get(0)];
		int cut1 = oldC.vxList.indexOf(tempCycle.vxList.get(0)); //indeks w activeCyc.vxList punktu tempCycle.vxList[0]
		int cut2 = oldC.vxList.indexOf(tempCycle.vxList.get(tempCycle.vxList.size()-1));
		ArrayList<Integer> c = (ArrayList<Integer>) oldC.vxList.subList(cut1+1, oldC.vxList.size());
		c.addAll(oldC.vxList.subList(0, cut2));
		ArrayList<Integer> z = (ArrayList<Integer>) oldC.vxList.subList(cut2+1, cut1);
		ArrayList<Integer> w = tempCycle.vxList;
		ArrayList<Integer> cl = (ArrayList<Integer>) oldC.lnList.subList(cut1+1, oldC.lnList.size());
		cl.addAll(oldC.lnList.subList(0, cut2));
		ArrayList<Integer> zl = (ArrayList<Integer>) oldC.lnList.subList(cut2+1, cut1);
		ArrayList<Integer> wl = tempCycle.lnList;
		
		if(cut1<cut2){ 
			oldC.vxList.clear();
			oldC.vxList.addAll(c);
			oldC.vxList.addAll(w);
			/*for(int i : w){
				oldC.vxList.add(0, i);
				vertices[i].conCyc.add(markerCT);
			}*/
			tempCycle.vxList.clear();
			tempCycle.vxList.addAll(z);
			for(int i : w){
				tempCycle.vxList.add(0, i);
				vertices[i].conCyc.add(markerCT);
			}
			for(int i : z){ //ustawia nr nowego cyklu na miejscu starego
				vertices[i].conCyc.set(vertices[i].conCyc.indexOf(vertices[i].conCyc), markerCT); 
			}
			//linie
			oldC.lnList.clear();
			oldC.lnList.addAll(cl);
			oldC.lnList.addAll(wl);
			tempCycle.lnList.clear();
			tempCycle.lnList.addAll(zl);
			for(int i : wl){
				tempCycle.lnList.add(0, i);
				lines[i].conCyc.add(markerCT);
			}
		}else{ 
			//wierzchołki
			oldC.vxList.clear();
			oldC.vxList.addAll(c);
			for(int i : w){
				oldC.vxList.add(0, i);
				vertices[i].conCyc.add(markerCT);
			}
			tempCycle.vxList.clear();
			tempCycle.vxList.addAll(z);
			tempCycle.vxList.addAll(w);
			for(int i : z){ //ustawia nr nowego cyklu na miejscu starego
				vertices[i].conCyc.set(vertices[i].conCyc.indexOf(vertices[i].conCyc), markerCT); 
			}
			//linie
			oldC.lnList.clear();
			oldC.lnList.addAll(cl);
			for(int i : wl){
				oldC.lnList.add(0, i);
				lines[i].conCyc.add(markerCT);
			}
			tempCycle.lnList.clear();
			tempCycle.lnList.addAll(zl);
			tempCycle.lnList.addAll(wl);
		}
		addCycle();				
	}