![]() |
Bridges-Python 3.5.1
Bridges(Python API)
|
This class is used to represent the edges in a graph and will appear as links in the BRIDGES graph visualization. More...
Public Member Functions | |
| None | __init__ (self, v1, v2, data=None, str label=None, Color color=None, float thickness=None) |
| Constructor for a edge. | |
| get_edge (self) | |
| Get this edge object. | |
Protected Attributes | |
| _from_vertex | |
| _to_vertex | |
| _edge_data | |
| _lvis | |
Properties | |
| tov = property | |
| Getter for the to vertex. | |
| fromv = property | |
| Getter for the from vertex. | |
| destination = property | |
| Getter for the to vertex. | |
| source = property | |
| Getter for the from vertex. | |
| thickness = property | |
| Getter for the link thickness. | |
| edge_data = property | |
| Getter for edge data. | |
| color = property | |
| Getter for edge color. | |
| opacity = property | |
| Getter for the edge opacity. | |
| label = property | |
| Getter for the edge label. | |
This class is used to represent the edges in a graph and will appear as links in the BRIDGES graph visualization.
This object is used in graphs and graph algorithms such as DFS, BFS and shortest path algorithms that need to visit graph edges. The adjacency list representation uses them as the generic paramter, as SLelement<Edge> bridges represents Edges as links between pairs of elements
| None bridges.edge.Edge.__init__ | ( | self, | |
| v1, | |||
| v2, | |||
data = None, |
|||
| str | label = None, |
||
| Color | color = None, |
||
| float | thickness = None |
||
| ) |
Constructor for a edge.
| v1 | first vertex of the edge |
| v2 | second vertex of the edge |
| data | the data the edge will hold |
| label | edge label |
| color | edge color |
| thickness | edge thickness |
| bridges.edge.Edge.get_edge | ( | self | ) |
Get this edge object.
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Getter for edge color.
|
static |
Getter for the to vertex.
|
static |
Getter for edge data.
|
static |
Getter for the from vertex.
|
static |
Getter for the edge label.
|
static |
Getter for the edge opacity.
|
static |
Getter for the from vertex.
|
static |
Getter for the link thickness.
|
static |
Getter for the to vertex.