pyclustering  0.10.1
pyclustring is a Python, C++ data mining library.
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 40 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 46 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 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)
Returns
(type_graph_descr) Type of graph representation.

Definition at line 110 of file graph.py.


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