private bool algorithmHasUnicueFinalOperator() { bool hasFinalOperator = false; for (int i = 0; i < aOperator.Length; i++) { if (aOperator[i].VertexTo == null) { if (hasFinalOperator) { return(false); } hasFinalOperator = true; finalOperator = aOperator[i]; } } return(hasFinalOperator); }
private bool algorithmHasUnicueStartOperator() { bool hasStartOperator = false; for (int i = 0; i < aOperator.Length; i++) { if (aOperator[i].IsStartOperator) { if (hasStartOperator) { return(false); } hasStartOperator = true; startOperator = aOperator[i]; } } return(hasStartOperator); }