Beispiel #1
0
def test_network_plot():
    """Test the plot function on a network."""
    net = Network()
    net.add_node('a', color='red')
    net.add_node('b', size=40)
    net.add_edge('a', 'b', uid='a-b', color='blue')

    net.plot(filename='simple_plot.html', node_color={'a': 'green'})
Beispiel #2
0
def test_plot_empty_network_plot():
    """Test the plot function on a network."""
    net = Network()
    net.plot()