![]() |
STAG Python
2.0.2
Spectral Toolkit of Algorithms for Graphs
|
An object representing a weighted edge in a graph.
Public Member Functions | |
| def | __init__ (self, int v1, int v2, float weight) |
| Create an edge from two node ids and a weight. | |
Public Attributes | |
| v1 | |
| The ID of the first vertex in the edge. | |
| v2 | |
| The ID of the second vertex in the edge. | |
| weight | |
| The weight of the edge. | |
| def stag.graph.Edge.__init__ | ( | self, | |
| int | v1, | ||
| int | v2, | ||
| float | weight | ||
| ) |
Create an edge from two node ids and a weight.
| stag.graph.Edge.v1 |
The ID of the first vertex in the edge.
| stag.graph.Edge.v2 |
The ID of the second vertex in the edge.
| stag.graph.Edge.weight |
The weight of the edge.