diff --git a/mininet/topo.py b/mininet/topo.py index cae1c04..d09004c 100644 --- a/mininet/topo.py +++ b/mininet/topo.py @@ -40,6 +40,10 @@ class Graph( object ): for dest in self.data[ src ]: yield ( src, dest ) + def __getitem__( self, node ): + "Return link dict for the given node" + return self.data[node] + class Topo(object): "Data center network representation for structured multi-trees."