@interact
def _(graph = input_box(default = {0:[1], 1:[2], 2:[3], 3:[4], 5:[0]}, label = 'Insert Graph here:',type = dict), ancilla = input_box(default = [0], label = 'Ancilla Vertices', type = list)):
p = rcd(graph, ancilla)
Graph(graph).plot
print p