(self)
return "weight" in self.edge_attributes()
Returns whether the graph is weighted.

        A graph is weighted if and only if it has a C{"weight"} edge attribute.
Returns whether the graph is weighted.
Returns whether the graph is weighted .
def is_weighted(self):
        """Returns whether the graph is weighted.

        A graph is weighted if and only if it has a C{"weight"} edge attribute.
        """
        return "weight" in self.edge_attributes()
def is_weighted ( self ) : return "weight" in self . edge_attributes ( )