pyclustering  0.10.1
pyclustring is a Python, C++ data mining library.
pyclustering.utils.graph.type_graph_descr Class Reference

Enumeration of graph description. More...

+ Inheritance diagram for pyclustering.utils.graph.type_graph_descr:
+ Collaboration diagram for pyclustering.utils.graph.type_graph_descr:

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.
 

Detailed Description

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] ].

Definition at line 17 of file graph.py.


The documentation for this class was generated from the following file: