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

Scale by zero for random graph #7

Open
GregorySchwartz opened this issue May 21, 2019 · 2 comments
Open

Scale by zero for random graph #7

GregorySchwartz opened this issue May 21, 2019 · 2 comments

Comments

@GregorySchwartz
Copy link
Collaborator

Running this code through diagram-builder gives

diagrams-builder-cairo: scale by zero!  Halp!
CallStack (from HasCallStack):
  error, called at src/Diagrams/Core/Transform.hs:425:11 in diagrams-core-1.4.1.1-K28WMLqu11XFyUMvGB0HVd:Diagrams.Core.Transform

Random graph from graph-generators.

import Diagrams.TwoD.GraphViz
import Data.Graph.Generators.Random.BarabasiAlbert
import Data.Graph.Generators.FGL
import Data.GraphViz
import Data.GraphViz.Commands

g = barabasiAlbertGraph' 10 2

dia = g >>= (simpleGraphDiagram Neato . graphInfoToUGr)
@santolucito
Copy link

I ran into a similar error. This might be due to a lack of support for self-loops, as mentioned in issue #8

@L0neGamer
Copy link

I ran into this issue earlier with graphs that have self loops.

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

3 participants