Class Vertex - the vertex class

Class Vertex - the vertex class

SYNOPSIS

import graph
class Vertex(Map)
  def __getitem__(self, label)
  def __init__(self, object)
  string __module__ = 'graph'
  def __repr__(self)
  def __setitem__(self, label, vertex)
  def degre(self)

  # Methods inherited by Vertex from Map
  def __add__(self, map)
  def __delitem__(self, key)
  def __len__(self)
  def add(self, map)
  def clear(self)
  def has_key(self, key)
  def insert_map(self, map)
  def items(self)
  def keys(self)
  def values(self)

  # Methods inherited by Vertex from Object
  def __cmp__(self, object)
  def __hash__(self)
  def __str__(self)
  def copy(self)
  def read(self, filename)
  def write(self, filename)

DESCRIPTION

def __add__(self, map)

Non commutative addition. A new map is created

def __str__(self)

do not overload, should be equivalent to self.name

def degre(self)

return the degre of a vertex

def read(self, filename)

serialization

def write(self, filename)

serialization

SEE ALSO

graph

Map


Generated by HTMLFormatter at Tue Jun 12 18:59:08 2001