> I am somewhat surprised that the graph library enforces numerical edge 
> weights at all.

The docs do informally say number weights but I don't think the
constructors do any checking? Any enforcement should be deferred to
individual algorithms.

Re: graphviz, I took a quick look and I think we could get the
behavior you want with a 1-line modification here, changing = to
equal?
https://github.com/stchang/graph/blob/master/graph-lib/graph/graph-fns-graphviz.rkt#L59-L60

Do you have an example I can work with?

I opened an issue so feel free to reply there instead:
https://github.com/stchang/graph/issues/53

On Sun, Feb 23, 2020 at 8:45 AM unlimitedscolobb
<unlimitedscol...@gmail.com> wrote:
>
> Hello,
>
> I'm using the wonderful graph library which can do tons of various 
> graph-related tasks.  However, I haven't found a way to attach non-numerical 
> weights/labels to edges _and_ have them appear in the Graphviz rendering of 
> the graph.
>
> Is it at all possible?
>
> I did see define-edge-property, but properties defined in this way do not 
> appear in the Graphviz output.  I was looking for ways of passing edge 
> properties to the graphviz function of the library, but there don't seem to 
> be any.
>
> I am planning to do a pull request enhancing the graphviz function with the 
> possibility to include edge properties, but I wanted to ask around for some 
> solutions which may already exist.
>
>
> -
> Sergiu
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/e4cb44fd-0a21-4e91-a75c-f1442127bfa9%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAFfiA1LrcfpVxLW%2B%2BCkH0iwRrpzx4bG1t9eSMfFiRc%3D5VLG8MA%40mail.gmail.com.

Reply via email to