draw                   package:lcd                   R Documentation

_D_r_a_w _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     Draws a graph from its adjacency matrix.

_U_s_a_g_e:

     draw(amat, plain = TRUE)

_A_r_g_u_m_e_n_t_s:

    amat: the adjacency matrix of the graph. 

   plain: logical value. If 'TRUE', then a plain plot is drawn for the
          graph; if 'FALSE', a tlkck plot is drawn.

_D_e_t_a_i_l_s:

     The function converts the adjacency matrix to an 'igraph' object
     and uses the 'plot.igraph'/'tkplot' function in 'igraph' package
     to draw  the graph. Special care is paid to make the
     directed/undirected edges displayed right. Finally, the function
     returns the vertex list of the graph for comparison to the vertex
     numbering used in the plot.

_V_a_l_u_e:

     The vertex list. The main output is the side effect of the
     function.

_A_u_t_h_o_r(_s):

     Zongming Ma and Xiangrui Meng

