def size(self, type=None, failed=False):
return len(self.nodes(type=type, failed=failed))<EOL>
How many nodes in a network.

        type specifies the class of node, failed
        can be True/False/all.