Simple class for storing edge weights.
Use EdgeWeight[(u,v)] for access, undirected graphs are
handled properly.
Methods
|
|
Integerize
QInteger
SetAll
__getitem__
__init__
__setitem__
|
|
Integerize
|
Integerize ( self )
|
|
QInteger
|
QInteger ( self )
Returns 1 if all weights are integers, 0 else
|
|
SetAll
|
SetAll ( self, initialWeight )
|
|
__getitem__
|
__getitem__ ( self, e )
|
|
__init__
|
__init__ (
self,
theGraph,
initialWeight=None,
)
|
|
__setitem__
|
__setitem__ (
self,
e,
val,
)
|
|