'Yields the number of edges vs. the maximum number of possible edges.
For example, <0.35 => sparse, >0.65 => dense, 1.0 => complete.'

@property
def density(self):

    return ((2.0 * len(self.edges)) / (len(self.nodes) * (len(self.nodes) - 1)))
