From 39dd8d901e9753393296ffc3b93d9086ce90e905 Mon Sep 17 00:00:00 2001 From: filifa Date: Tue, 6 May 2025 23:38:25 -0400 Subject: [PATCH] change edge weight attribute to len --- cmd/internal/graph/dot/nodes_edges.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/internal/graph/dot/nodes_edges.go b/cmd/internal/graph/dot/nodes_edges.go index c3eb4ae..f13a030 100644 --- a/cmd/internal/graph/dot/nodes_edges.go +++ b/cmd/internal/graph/dot/nodes_edges.go @@ -54,7 +54,7 @@ func (e *weightedLine) SetAttribute(attr encoding.Attribute) error { var err error switch attr.Key { - case "weight": + case "len": e.W, err = strconv.ParseFloat(attr.Value, 64) default: err = errors.New("unknown key:" + attr.Key)