Finished implfunitons for extractAllPossiblePatternsFromInputLinks