Write the view for the root of a vocabulary to disk
写词汇到磁盘的根
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a directory and a vocabulary represented as a graphNEL containing a DAG of terms, write the top-level term to disk as HTML.
鉴于一个目录,作为graphNEL包含一个DAG术语代表词汇,写的顶级任期为HTML到磁盘。
This assumes your vocabulary has a single term with no parents.
这是假设你的词汇量,有没有父母术语单一。
用法----------Usage----------
writeTopLevelView(dir, vocab)
参数----------Arguments----------
参数:dir
A string giving a directory in which to write the HTML file
一个字符串,给出一个目录在其中写入HTML文件
参数:vocab
A graphNEL instance giving the DAG of terms. It should have a root node. That is, there should be exactly one node with no incoming edges.
一个graphNEL实例给DAG的条款。它应该有一个根节点。也就是说,应该有一个没有入边的节点。