#19477: Graph(filename)
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.10
enhancement | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | 836cef67d31fe19b405fd82a3f8a769acfa53280
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/19477 |
Dependencies: |
#19390 |
-------------------------+-------------------------------------------------
Comment (by ncohen):
Yo,
> ok, let's follow the majority: edgelist is either a list of pairs (one
pair source-destination per line) or a list a triples source-dest-label.
Thanks.
> However, I don't understand why you treat labels as strings. I assume
that most of the time the label will be a cost or a weight or a capacity,
so int or float. You could use e.g. `eval(w)`?
I assume the same, but can I make this assumption in the code? I wanted to
have a 'float' there, but then I do not know. The problem with 'eval' is
that you "just can't" eval anything that you are given. I could take
control of your computer by sending you an "edgelist" file. Of course this
will probably never happen, but I don't like much knowing that I made this
possible `:-/`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/19477#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.