static L webs_readTripleFile(File f) { Iterator it = linesFromFile(f); //L names = (L) unstructure(it.next()); new L names; while (it.hasNext()) { S s = trim(it.next()); if (empty(s)) break; names.add(unquote(s)); } new L webs; while (it.hasNext()) { S s = it.next(); pcall { L l = splitAtSpace(s); if (l(l) == 3) webs.add(webFromTriple( names.get(parseInt(first(l))), names.get(parseInt(second(l))), names.get(parseInt(last(l))))); } } ret webs; }