public static Type makeType(int src, Vector<Integer> first, Vector<Integer> second) {
		Type type = Type.UNKOWN;
		int i = first.size()-1, j=second.size()-1;
		do {
			if (first.get(i) != second.get(j))
				break;
			i--;
			j--;
		} while (i >=0 && j>=0); // until not equal or path finished!

		if (i > 1) { //region-lfa
			type = Type.REGION;
		} else if (i == 1) { //node-lfa
			type = Type.NODE;
		} else if ( i == 0) { // link-lfa
			type = Type.LINK;
		} else {   //loop-back, not available
			type = Type.UNKOWN;
		}

		return type;
	}