Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphviz built without any triangulation library #65

Open
Btijmen opened this issue Feb 7, 2023 · 0 comments
Open

Graphviz built without any triangulation library #65

Btijmen opened this issue Feb 7, 2023 · 0 comments

Comments

@Btijmen
Copy link

Btijmen commented Feb 7, 2023

Using

g := graphviz.New()
	graph, err := g.Graph()
	graph.SetLayout("fdp") 
	graph.SetOverlap(false)

And rendering to svg

	var buf bytes.Buffer
	if err := g.Render(graph, graphviz.SVG, &buf); err != nil {
	log.Fatal(err)
	}
	_, err = g.RenderImage(graph)
	if err != nil {
	log.Fatal(err)
	}
	if err := g.RenderFilename(graph, graphviz.SVG, "mygraph.svg"); err != nil {
	log.Fatal(err)
	}

Results in an error 2023/02/07 10:51:52 delaunay_tri: Graphviz built without any triangulation library

I'm running MacOS Ventura 13.1, fully updated. GTS is installed

brew list --versions gts
gts 0.7.6_2

Since graphviz is packaged with go-graphviz, I'm guessing it probably has to be built with gts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant