def plot(self, matplotlib=False): """Plot the network topology Args: None Returns: None Example usage: >>> inet = ank.internet.Internet() >>> inet.plot() """ LOG.info("Plotting") matplotlib = matplotlib or config.settings['Plotting']['matplotlib'] if matplotlib: ank.plot(self.network) ank.jsplot(self.network) ank.summarydoc(self.network) ank.dump_graph(self.network.graph, os.path.join(config.log_dir, "physical")) physical_single_edge = nx.Graph(self.network.graph) ank.dump_graph(physical_single_edge, os.path.join(config.log_dir, "physical_single_edge")) ibgp_graph = ank.get_ibgp_graph(self.network) ebgp_graph = ank.get_ebgp_graph(self.network) ank.dump_graph(ibgp_graph, os.path.join(config.log_dir, "ibgp")) ank.dump_graph(ebgp_graph, os.path.join(config.log_dir, "ebgp")) g_dns = nx.Graph(self.network.g_dns) ank.dump_graph(g_dns, os.path.join(config.log_dir, "dns")) ank.dump_graph(self.network.g_dns_auth, os.path.join(config.log_dir, "dns_auth")) ank.dump_identifiers(self.network, os.path.join(config.log_dir, "identifiers.txt"))