public void add(int line, Vertex vertex)
    {
        for (Vertex oldVertex : vertexes[line])
        {
            // 保证唯一性
            if (oldVertex.realWord.length() == vertex.realWord.length()) return;
        }
        vertexes[line].add(vertex);
        ++size;
    }
public void add ( int line , Vertex vertex ) { for ( Vertex oldVertex : vertexes [ line ] ) { if ( oldVertex . realWord . length ( ) == vertex . realWord . length ( ) ) return ; } vertexes [ line ] . add ( vertex ) ; ++ size ; }
添加顶点

@param line   行号
@param vertex 顶点