engine: Small typo/cleanups in autogrouping code

This commit is contained in:
James Shubin
2020-04-15 08:45:41 -04:00
parent 58998f9cab
commit 4d187419ac
4 changed files with 17 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ import (
// VertexMerge merges v2 into v1 by reattaching the edges where appropriate, and
// then by deleting v2 from the graph. Since more than one edge between two
// vertices is not allowed, duplicate edges are merged as well. an edge merge
// vertices is not allowed, duplicate edges are merged as well. An edge merge
// function can be provided if you'd like to control how you merge the edges!
func VertexMerge(g *pgraph.Graph, v1, v2 pgraph.Vertex, vertexMergeFn func(pgraph.Vertex, pgraph.Vertex) (pgraph.Vertex, error), edgeMergeFn func(pgraph.Edge, pgraph.Edge) pgraph.Edge) error {
// methodology