def test_TGP_display_by_networkx(display = False): """ Test the display of a TPG by networkx """ g = create_random_TPG() nxg = g.to_networkx() import matplotlib.pyplot as plt nx.draw(nxg) if display: plt.show()
def test_import_TPG_from_networkx(): """ Create a random graph and import it to networkx """ g = create_random_TPG() nxg = g.to_networkx() gg = TemporalPropertyGraph().from_networkx(nxg)
def test_export_TPG_2_networkx(): """ Create a random graph and export it to networkx """ g = create_random_TPG() nxg = g.to_networkx()