algos/irving.js
//keys will be individual names and values will be rank-ordered preference arrays
keys will be individual names and values will be rank-ordered preference arrays
keys will be individual names and values will be rank - ordered preference arrays
function stableRoomies(prefTable) {
  const stableProposalTable = getStableTable(prefTable);
  if (!stableProposalTable) return `Error: 'Unstable Matches @ getStableTable'`;
  const reducedPrefTable = reduceStableTables(stableProposalTable, prefTable);
  const stableOutput = removeCycle(reducedPrefTable);
  return stableOutput ? stableOutput : `Error: 'Unstable Matches @ removeCycle'`;
}
function stableRoomies ( prefTable ) { const stableProposalTable = getStableTable ( prefTable ) ; if ( ! stableProposalTable ) return ` ` ; const reducedPrefTable = reduceStableTables ( stableProposalTable , prefTable ) ; const stableOutput = removeCycle ( reducedPrefTable ) ; return stableOutput ? stableOutput : ` ` ; }
keys will be individual names and values will be rank-ordered preference arrays
keys will be individual names and values will be rank - ordered preference arrays
//if stableTable is falsy, then we failed to make stable matches in first phase //prompt user with option to randomly swap one set of preferences