public static String toMapleCode(SquareMatrix m) {
		String output = "";

		if (1 == ID) {
			output += "restart; with(GraphTheory):\n";
		}
		output += "G" + ID + ":=Graph(<";

		ID++;

		for (int col = 0; col < m.getNumberOfColumns(); col++) {
			output += "<";
			for (int row = 0; row < m.getNumberOfRows(); row++) {
				output += ("" + (m.getElement(row, col) | m
						.getElement(col, row)));

				if (row < m.getNumberOfRows() - 1) {
					output += ",";
				}
			}
			output += ">";

			if (col < m.getNumberOfColumns() - 1) {
				output += "|";
			}
		}

		output += ">):\n";
		output += "DrawGraph(G" + ID + ");\n";

		return output;
	}