Hi Andrew, hi Nathann,

On 2014-12-10, Andrew <[email protected]> wrote:
>> I believe that the solution is to lead the user to say explicitly what he 
>> expects. The goal of #15706 is to add a warning, so that later all graphs 
>> will be simple by default. Users who want to deal with multigraphs will 
>> have to say it explicitly, and so decide what add_edge will do in the 
>> future. This will spare them wrong results.
>>
>
> Hi Nathan,
>
> What about having an optional argument that specifies whether the user 
> wants a graph or mult-graph?

I think that'd be the purpose of the "multiedges=False/True" parameter
that Nathann suggests.

I could be mistaken, but don't we have such parameter already? If I want
to create a looped multigraph, then I usually start with
  G = DiGraph(multiedges=True,loops=True)
  G.add_edge((0,1,'f'))
  ...

And since explicit is better than implicit, I'd think it is reasonable
to ask the user to be explicit about graphs or multigraphs.

Best regards,
Simon


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to