>
> Consider
>>
>> plot(Graph({1:[2],1:[3]}))
>>
>> I would expect two edges. Instead the vertex 2 isn't even there. Is
>> this a bug or a feature? The documentation for this way of entering graphs
>> is pretty terse so I was quite surprised by this outcome.
>>
>
> Sage never comes into play here. Dictionary literals ("Dictionary
> displays" in official python lingo) are defined to be evaluated
> left-to-right, in order. See
> https://docs.python.org/2/reference/expressions.html#dictionary-displays
>
"This means that you can specify the same key multiple times in the
key/datum list, and the final dictionary’s value for that key will be the
last one given."
Okay, that is very helpful, and something I'm a little surprised I haven't
seen before - I never even checked the dict! Luckily for my actual
application I could just move my filter somewhere else to avoid this issue.
Thanks!
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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-support.
For more options, visit https://groups.google.com/d/optout.