#7564: graph theory: degree sequence function
----------------------------+-----------------------------------------------
Reporter: mvngu | Owner: rlm
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-4.3
Component: graph theory | Keywords:
Work_issues: | Author: Minh Van Nguyen
Upstream: N/A | Reviewer:
Merged: |
----------------------------+-----------------------------------------------
Comment(by mvngu):
Replying to [comment:6 ncohen]:
> Could it be possible to define in the same patch functions
outdegree_sequence and indegree_sequence for DiGraphs ? :-)
Y-E-S, yes! :-)
[[BR]]
The patch `trac_7564-degree-sequences.patch` implements the following
degree sequences:
1. `degree_sequence()` --- the degree sequence of a (di)graph. This is
implemented in the class `GenericGraph`.
1. `in_degree_sequence()` --- the indegree sequence of a digraph. This is
implemented in the class `DiGraph`.
1. `out_degree_sequence()` --- the outdegree sequence of a digraph, also
implemented in the class `DiGraph`.
I use the method names `in_degree_sequence()` and `out_degree_sequence()`
to be consistent with how the graph theory module names the indegree and
outdegree methods.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7564#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.