Graph representation.
More...
Graph representation.
Definition at line 40 of file graph.py.
◆ __init__()
def pyclustering.utils.graph.graph.__init__ |
( |
|
self, |
|
|
|
data, |
|
|
|
type_graph = None , |
|
|
|
space_descr = None , |
|
|
|
comments = None |
|
) |
| |
Constructor of graph.
- Parameters
-
[in] | data | (list): Representation of graph. Considered as matrix if 'type_graph' is not specified. |
[in] | type_graph | (type_graph_descr): Type of graph representation in 'data'. |
[in] | space_descr | (list): Coordinates of each vertex that are used for graph drawing (can be omitted). |
[in] | comments | (string): Comments related to graph. |
Definition at line 46 of file graph.py.
◆ __len__()
def pyclustering.utils.graph.graph.__len__ |
( |
|
self | ) |
|
- Returns
- (uint) Size of graph defined by number of vertices.
Definition at line 74 of file graph.py.
◆ comments()
def pyclustering.utils.graph.graph.comments |
( |
|
self | ) |
|
- Returns
- (string) Comments.
Definition at line 102 of file graph.py.
◆ data()
def pyclustering.utils.graph.graph.data |
( |
|
self | ) |
|
- Returns
- (list) Graph representation.
Definition at line 83 of file graph.py.
◆ space_description()
def pyclustering.utils.graph.graph.space_description |
( |
|
self | ) |
|
- Returns
- (list) Space description.
Definition at line 91 of file graph.py.
◆ type_graph_descr()
def pyclustering.utils.graph.graph.type_graph_descr |
( |
|
self | ) |
|
The documentation for this class was generated from the following file: