func (l Line) Weight() float64 {
	return l.Options().Weight
}
Weight returns edge weight
package memory
import (
	"github.com/milosgajdos/kraph/pkg/attrs"
	"github.com/milosgajdos/kraph/pkg/store/entity"
	"gonum.org/v1/gonum/graph"
	"gonum.org/v1/gonum/graph/encoding"
)
type Line struct {
	*entity.Edge
	id    int64
	from  *Node
	to    *Node
	dotid string
}
func NewLine(id int64, uid, dotid string, from, to *Node, opts ...entity.Option) *Line {
	edgeOpts := entity.NewOptions()
	for _, apply := range opts {
		apply(&edgeOpts)
	}
	edge := entity.NewEdge(uid, from.Node, to.Node, opts...)
	return &Line{
		Edge:  edge,
		id:    id,
		from:  from,
		to:    to,
		dotid: dotid,
	}
}
func (l *Line) ID() int64 {
	return l.id
}
func (l *Line) From() graph.Node {
	return l.from
}
func (l *Line) To() graph.Node {
	return l.to
}