[vtkusers] Meaning of vtkAdjacencyMatrixToEdgeTable output

David Doria daviddoria+vtk at gmail.com
Tue Aug 31 11:47:35 EDT 2010


Can anyone explain the output of this?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Graphs/AdjacencyMatrixToEdgeTable

The input array that I pass it is:

0 10 20
10 20 30
20 30 40

and the output is:


+-----------------+------------------+
|                 | value            |
+-----------------+------------------+
| 2               | 20               |
| 1               | 10               |
| 2               | 30               |
| 1               | 20               |
| 0               | 10               |
| 2               | 40               |
| 1               | 30               |
| 0               | 20               |
+-----------------+------------------+

The first column clearly has something to do with the row and column
in the adjacency matrix (0 - 2, since it is a 3x3 matrix), but I don't
understand what the pairs in this table indicate? For example, what is
(2, 20)?

Thanks,

David



More information about the vtkusers mailing list