#19586: Add is_cayley_graph
-------------------------------------+-------------------------------------
Reporter: jaanos | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: graph theory | Resolution:
Keywords: Cayley graphs | Merged in:
groups | Reviewers:
Authors: Janoš Vidali | Work issues:
Report Upstream: N/A | Commit:
Branch: | baba4a8d4919be000984d40f56db542557c55e51
u/jaanos/add_is_cayley_graph | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by ncohen):
Yo !!
> I actually agree - I was just trying to implement what Dima had
suggested. But anyway, I think it would not be wrong to let the user also
have the generating set and a labelled copy of the graph if requested.
I quite like to abuse of Python's features in this respect (though I know
Dima hates it), and have the same function return as much stuff as needed:
`G.is_cayley_graph(group=True,labelled_graph=True)`.
> I agree that having `data` as a parameter to `copy` is ugly and counter-
intuitive. However, lacking a way to label the edges of a multigraph, I
thought it would be easiest to just rebuild a graph with the labels, and
`copy` already provides all copying-related stuff (an alternative would be
to replicate its code).
Is there any reason why you don't create an empty digraph and add the
necessary edges? I first thought that you were trying to avoid
distinguishing graph and digraph, but then I wondered what the label would
be on an *unlabeled* edge. `u/v` or `v/u`? Seems better to always use a
digraph, doesn't it?
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/19586#comment:56>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.