pyclustering.utils.graph.graph Class Reference

Graph representation. More...

Public Member Functions

def __init__ (self, data, type_graph=None, space_descr=None, comments=None)
 Constructor of graph. More...
 
def __len__ (self)
 
def data (self)
 
def space_description (self)
 
def comments (self)
 
def type_graph_descr (self)
 

Detailed Description

Graph representation.

Definition at line 60 of file graph.py.

Constructor & Destructor Documentation

◆ __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 66 of file graph.py.

Member Function Documentation

◆ __len__()

def pyclustering.utils.graph.graph.__len__ (   self)
Returns
(uint) Size of graph defined by number of vertices.

Definition at line 94 of file graph.py.

◆ comments()

def pyclustering.utils.graph.graph.comments (   self)
Returns
(string) Comments.

Definition at line 122 of file graph.py.

◆ data()

def pyclustering.utils.graph.graph.data (   self)
Returns
(list) Graph representation.

Definition at line 103 of file graph.py.

◆ space_description()

def pyclustering.utils.graph.graph.space_description (   self)
Returns
(list) Space description.

Definition at line 111 of file graph.py.

◆ type_graph_descr()

def pyclustering.utils.graph.graph.type_graph_descr (   self)
Returns
(type_graph_descr) Type of graph representation.

Definition at line 130 of file graph.py.


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