Create parallel edges

Hello everyone,

I would like to make a function create_parallel_edges(graph, edge, number_of_parallels), where any given edge in a network graph is replaced by a given number of parallel edges.

I’m not quite sure how to properly define parallel edges. Do I need to rely on edgepaths for that?

Below is a small graph with two edges to try out possible approaches. Any help or ideas would be apprechiated.

By the way, the discussion in
explains how to add new edges to a network graph after it has been created.

import holoviews as hv

def create_parallel_edges(graph, edge, number_of_parallels): 
	# should replace the given edge in the holoviews by the given number of parallel edges
graph = hv.Graph((([0, 0, 0], [0, 1, 2]),)) # produces a small graph, "graph_that_should_have_parallels.png")