pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Enumeration of graph description. More...
Static Public Attributes | |
int | GRAPH_UNKNOWN = 0; |
Unknown graph representation. | |
int | GRAPH_MATRIX_DESCR = 1; |
Matrix graph representation. | |
int | GRAPH_VECTOR_DESCR = 2; |
Vector graph representation. | |
Enumeration of graph description.
Matrix representation is list of lists where number of rows equals number of columns and each element of square matrix determines whether there is connection between two vertices. For example: [ [0, 1, 1], [1, 0, 1], [1, 1, 0] ].
Vector representation is list of lists where index of row corresponds to index of vertex and elements of row consists of indexes of connected vertices. For example: [ [1, 2], [0, 2], [0, 1] ].