DisplayGraph             package:BNArray             R Documentation

_D_i_s_p_l_a_y _n_e_t_w_o_r_k _g_r_a_p_h

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

     Display network from its named adjacent matrix

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

     DisplayGraph(graph.matrix, colname.vec)

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

graph.matrix: an adjacent matrix  

colname.vec: the name of the adjacent matrix colnames(rownames) 

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

     Directed network graph is displayed from its corresponding
     adjacent matrix with column and rownames. M[i,j]=1 denotes the
     node j is a parent of node i in graph G. Otherwise, M[i,j]=0.

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

     No return value.

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

     Xiaohui Chen cxh1984@interchange.ubc.ca, 
      Kaida Ning aprilnkd@hotmail.com, 
      Ming Chen mchen@zju.edu.cn.

_E_x_a_m_p_l_e_s:

             m<-matrix(0,5,5)
             m[1,2:5]<-1
             m[2,3:5]<-1
             m[3,4:5]<-1
             m[4,5]<-1
             rownames(m)<-paste("G",1:5,sep="")
             colnames(m)<-paste("G",1:5,sep="")

             DisplayGraph(m,rownames(m))

