(self)
Returns the sum of all edge weights
Returns the sum of all edge weights
Returns the sum of all edge weights
def totalEdgeWeight(self):
        """ Returns the sum of all edge weights """
        if len(self.edges)>0:
            return sum(self.edges.values())
        else:
            return _np.array([0,0])
def totalEdgeWeight ( self ) : if len ( self . edges ) > 0 : return sum ( self . edges . values ( ) ) else : return _np . array ( [ 0 , 0 ] )