#8372: split up incidence_matrix() over graph.py and digraph.py
----------------------------+-----------------------------------------------
   Reporter:  mvngu         |       Owner:  rlm       
       Type:  enhancement   |      Status:  new       
   Priority:  major         |   Milestone:  sage-4.3.4
  Component:  graph theory  |    Keywords:            
     Author:                |    Upstream:  N/A       
   Reviewer:                |      Merged:            
Work_issues:                |  
----------------------------+-----------------------------------------------
 From [http://groups.google.com/group/sage-
 devel/browse_thread/thread/b9e4114047427c2e sage-devel]:
 {{{
 For discussion purposes, let me toss out some ideas on improving the
 interface for computing incidence matrices. For a graph object G, I
 propose we add a keyword to G.incidence_matrix() so that the interface
 is now changed to the following method signature:

 def G.incidence_matrix(orientation=False)

 The keyword "orientation" takes on a Boolean value. So
 G.incidence_matrix(orientation=False) or G.incidence_matrix() returns
 the unoriented incidence matrix of an undirected graph G. Furthermore,
 G.incidence_matrix(orientation=True) returns the oriented incidence
 matrix of an undirected graph G, which is the current behaviour. The
 keyword "orientation" has no effect if G is a digraph. So
 "orientation" is only meant to affect undirected graphs.

 Let's consider whether or not to leave the method incidence_matrix()
 in the module generic_graph.py. I consider it more appropriate for
 graph.py (a module for undirected graphs) to deal with incidence
 matrices for undirected graphs. Similarly, digraph.py can deal with
 incidence matrices for digraphs. At the moment, incidence_matrix()
 resides in generic_graph.py, a module with over 10 thousand lines.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8372>
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.

Reply via email to