If I understand what you want then you can use get_edge_data
:
In [35]:
import networkx as nx
G = nx.MultiDiGraph()
G.add_edge(1001, 7005, length=0.35, modes='cw', type='99', lanes=9)
G.edges(data=True)
Out[35]:
[(1001, 7005, {'lanes': 9, 'length': 0.35, 'modes': 'cw', 'type': '99'})]
In [34]:
G.get_edge_data(1001, 7005)[0]['length']
Out[34]:
0.35