class documentation

class Edge:

View In Hierarchy

Lightweight edge structure for a graph.

Method __hash__ Undocumented
Method __init__ Do not call constructor directly. Use Graph's insert_edge(u,v,x).
Method __str__ Undocumented
Method element Return element associated with this edge.
Method endpoints Return (u,v) tuple for vertices u and v.
Method opposite Return the vertex that is opposite v on this edge.
Class Variable __slots__ Undocumented
Instance Variable _destination Undocumented
Instance Variable _element Undocumented
Instance Variable _origin Undocumented
def __hash__(self):

Undocumented

def __init__(self, u, v, x):

Do not call constructor directly. Use Graph's insert_edge(u,v,x).

def __str__(self):

Undocumented

def element(self):

Return element associated with this edge.

def endpoints(self):

Return (u,v) tuple for vertices u and v.

def opposite(self, v):

Return the vertex that is opposite v on this edge.

__slots__: tuple[str, ...] =

Undocumented

_destination =

Undocumented

_element =

Undocumented

_origin =

Undocumented