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. More...
 
int GRAPH_MATRIX_DESCR = 1;
 Matrix graph representation. More...
 
int GRAPH_VECTOR_DESCR = 2;
 Vector graph representation. More...
 

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 37 of file graph.py.

Member Data Documentation

◆ GRAPH_MATRIX_DESCR

int pyclustering.utils.graph.type_graph_descr.GRAPH_MATRIX_DESCR = 1;
static

Matrix graph representation.

Definition at line 54 of file graph.py.

◆ GRAPH_UNKNOWN

int pyclustering.utils.graph.type_graph_descr.GRAPH_UNKNOWN = 0;
static

Unknown graph representation.

Definition at line 51 of file graph.py.

◆ GRAPH_VECTOR_DESCR

int pyclustering.utils.graph.type_graph_descr.GRAPH_VECTOR_DESCR = 2;
static

Vector graph representation.

Definition at line 57 of file graph.py.


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