I have a multigraph that has multiple types of edges going from one node to another. Is there an efficient way to represent this in Python?