Revision e0bf8ece examples/clustercli.py

View differences:

examples/clustercli.py
32 32
                import networkx as nx
33 33
                import matplotlib.pyplot as plt
34 34
                import pygraphviz
35
                assert pygraphviz  # silence pyflakes
35 36
            except:
36 37
                error( 'plot requires networkx, matplotlib and pygraphviz - '
37 38
                       'please install them and try again\n' )
......
40 41
        g = nx.Graph()
41 42
        mn = self.mn
42 43
        servers, hosts, switches = mn.servers, mn.hosts, mn.switches
43
        hlen, slen = len( hosts ), len( switches )
44 44
        nodes = hosts + switches
45 45
        g.add_nodes_from( nodes )
46 46
        links = [ ( link.intf1.node, link.intf2.node )

Also available in: Unified diff