pgraph: FilterGraph doesn't need a name arg

It's not being consumed anywhere, so remove it. If you really want to
rename the graph, this can be done as a second step.
This commit is contained in:
James Shubin
2024-01-07 18:15:46 -05:00
parent 58607e2ca0
commit 4939ae1a2f
2 changed files with 8 additions and 8 deletions

View File

@@ -181,7 +181,7 @@ func TestFilterGraph1(t *testing.T) {
//G.AddEdge(v6, v4, e6)
save := []Vertex{v1, v2, v3}
out, err := G.FilterGraph("new g5", save)
out, err := G.FilterGraph(save)
if err != nil {
t.Errorf("failed with: %v", err)
}
@@ -203,7 +203,7 @@ func TestFilterGraph2(t *testing.T) {
G.AddVertex(v4)
save := []Vertex{v1, v2, v3}
out, err := G.FilterGraph("new g5", save)
out, err := G.FilterGraph(save)
if err != nil {
t.Errorf("failed with: %v", err)
}
@@ -227,7 +227,7 @@ func TestFilterGraph3(t *testing.T) {
G.AddVertex(v5)
save := []Vertex{v1, v2, v3}
out, err := G.FilterGraph("new g5", save)
out, err := G.FilterGraph(save)
if err != nil {
t.Errorf("failed with: %v", err)
}