bitwalker / libgraph

A graph data structure library for Elixir projects
MIT License
524 stars 75 forks source link

DOT output should quote edge label text #2

Closed yonkeltron closed 7 years ago

yonkeltron commented 7 years ago

The DOT serialization feature is really handy! I can see myself adding TGF support in the future (in my copious free time) so there could be other serialization formats coming along.

In the meantime, the label text for edges should be quoted. I have a forward slash in my labels and noticed that it causes dot to spit out an error.

...syntax error in line 10 near '/'

The label looks like [label=HTTP/80; weight=1] but should look something like [label="HTTP/80"; weight=1].

Can I provide additional information or something?

bitwalker commented 7 years ago

Nice catch! You are absolutely correct, I'll get that patched up :)

bitwalker commented 7 years ago

Fixed in 46fbc7a, and released in 0.10.2. Thanks!