compl2(1)

NAME
compl2 - from directed to undirected adjacency vectors

CALLING SEQUENCE
[la2,lp2,ls2] = compl2(la1,lp1,ls1,dir)

PARAMETERS

la2,lp2,ls2
    : vectors of the adjacency description for undirected graph,
      la2 is the arc array, lp2 is the pointer array and ls2 is
      the node array

la1,lp1,ls1
    : vectors of the adjacency description for directed graph,
      la1 is the arc array, lp1 is the pointer array and ls1 is
      the node array

dir : integer flag, 1 if the graph is directed, 0 if the graph is
      undirected

DESCRIPTION
compl2 computes the adjacency vectors for undirected graph from the adjacency vectors of a graph. If dir is equal to 1, the obtained graph is considered as directed.

SEE ALSO
compla