Loading [MathJax]/extensions/tex2jax.js
STAG Python  1.2.1
Spectral Toolkit of Algorithms for Graphs
All Classes Namespaces Files Functions Variables Pages
stag.graph.Edge Class Reference

Description

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.
 

Constructor & Destructor Documentation

◆ __init__()

def stag.graph.Edge.__init__ (   self,
int  v1,
int  v2,
float  weight 
)

Create an edge from two node ids and a weight.

Member Data Documentation

◆ v1

stag.graph.Edge.v1

The ID of the first vertex in the edge.

◆ v2

stag.graph.Edge.v2

The ID of the second vertex in the edge.

◆ weight

stag.graph.Edge.weight

The weight of the edge.