Revision e5d7b380
ID | e5d7b3801df2769ef291cd17917b099f990edaa6 |
Parent | 4e1630e1 |
Child | 226eae97 |
topo: make new minimal Graph object a Graph, not a DiGraph
Fixes another Graph regression relative to NetworkX.
RipL broke because the NetworkX Graph object that was used previously
for topologies is an undirected graph:
import networkx as nx
g=nx.Graph()
g.add_edge(0,1)
g1
{0: {}}
g0
{1: {}}
There is a separate DiGraph object in NetworkX for directed behavior.
The minimal replacement previously implemented DiGraph behavior.
from mininet.topo import Graph
g2=Graph()
g2.add_edge(0,1)
g20
[1]
g21
[]
This commit restores undirected graph behavior.
Files
- added
- modified
- copied
- renamed
- deleted