I'm sure this is very basic, but is it possible to specify an arbitrary number of edges between nodes when constructing a graph? I've been searching under terms: 'directed graph', 'multiple directed graph', 'parallel edges', 'add_edges', etc.
Say, I have four nodes: A, B, C, D and I want to show: A to B, has 600 edges A to C, has 100 edges A to D, has 400 edges
I'm thinking something like:
import networkx as nx
G = nx.MultiDiGraph()
G.add_node('a', {'b': 600, 'c':100, 'd':400})
G.add_node('b')
G.add_node('c')
G.add_node('d')
(Except, obviously this isn't correct.)