Ticket #7184: trac7184-simplified.patch

File trac7184-simplified.patch, 732 bytes (added by AJonsson, 11 years ago)

remove unneeded reassignment of all diagonal entries of Kirchhoff matrix

  • sage/graphs/graph.py

    # HG changeset patch
    # User Anders Jonsson <anders.jonsson@norsjonet.se>
    # Date 1256125997 -7200
    # Node ID 23c84a0eb38e60fb730b27dbec52499afe93ba57
    # Parent  4d060628a797667744a2b351b923dd27b08e6f64
    Remove line that no longer is needed.
    
    diff -r 4d060628a797 -r 23c84a0eb38e sage/graphs/graph.py
    a b  
    22242224            M=self.kirchhoff_matrix()
    22252225            j=0
    22262226            for i in self.vertices():
    2227                         M[j,j]=self.in_degree(i)
    22282227                        if (self.vertices()[j]== root_vertex):
    22292228                            M[j,j]= M[j,j] + 1
    22302229                        j= j + 1