func (edges EdgeList) Len() int {
	return len(edges)
}
Return the number of edges that the EdgeList edges stores
package graph
import (
	"github.com/miguelfrde/image-segmentation/utils"
	"image"
	"image/color"
	"math"
)
type Pixel struct {
	X, Y  int
	Color color.Color
}
type WeightFn func(Pixel, Pixel) float64
type Edge struct {
	u, v   int
	weight float64
}
func (e *Edge) U() int {
	return e.u
}
func (e *Edge) V() int {
	return e.v
}
func (e *Edge) Weight() float64 {
	return e.weight
}
type EdgeList []Edge