Package obitools :: Package graph :: Class Edge
[hide private]
[frames] | no frames]

Class Edge

source code


Instance Methods [hide private]
 
__init__(self, node1, node2)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getGraph(self) source code
bool
has_key(self, key)
test is the edge instance has a property named 'key'.
source code
 
getDirected(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__str__(self)
str(x)
source code
 
__contains__(self, key) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  graph
Graph owning this edge
  directed
Directed's Docstring

Inherited from object: __class__

Method Details [hide private]

__init__(self, node1, node2)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

has_key(self, key)

source code 

test is the edge instance has a property named 'key'.

Parameters:
  • key (str) - the name of a property
Returns: bool
True if the edge has a property named <key>

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

graph

Graph owning this edge

Get Method:
getGraph(self)

directed

Directed's Docstring

Get Method:
getDirected(self)