test_relabel.py | 68 # check mapping 99 mapping={'A':'aardvark','B':'bear','C':'cat','D':'dog'} 100 H=relabel_nodes(G,mapping) 106 # function mapping no longer encouraged but works 107 def mapping(n): function in function:TestRelabel.test_relabel_nodes_function 109 H=relabel_nodes(G,mapping) 114 mapping={'A':'aardvark','B':'bear','C':'cat','D':'dog'} 115 H=relabel_nodes(G,mapping) 120 mapping={'A':'aardvark','B':'bear','C':'cat','D':'dog'} 121 H=relabel_nodes(G,mapping,copy=False [all...] |