diff --git a/models/graph.go b/models/graph.go index 1ebac98..af59207 100644 --- a/models/graph.go +++ b/models/graph.go @@ -114,7 +114,7 @@ func (builder *GraphBuilder) Extract() ([]*GraphNode,[]*GraphLink) { iLinks += 1 } } - return nodes, links + return nodes, links[:iLinks] } func (builder *GraphBuilder) isVPN(ids ...string) bool {