def json(self, dict=False, **kwargs):
try:<EOL><INDENT>graph = self.graph<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise NotImplementedError()<EOL><DEDENT>return _netjson_networkgraph(self.protocol,<EOL>self.version,<EOL>self.revision,<EOL>self.metric,<EOL>graph.nodes(data=True),<EOL>graph.edges(data=True),<EOL>dict,<EOL>**kwargs)<EOL>
Outputs NetJSON format