hiperwalk.Coined.set_marked#

Coined.set_marked(marked=[])[source]#

Set the marked vertices.

When a set or list of vertices is provided, they are set as marked. The evolution operator is updated accordingly.

If a dictionary is passed, the coin of those vertices is replaced solely for the purpose of generating the evolution operator. This can only be done if the set coin operator is not an explicit matrix.

Parameters:
markedlist of vertices or dict

list of vertices to be marked and how they are going to be marked.

  • list of vertices

    Given vertices are set as marked. The coin for those vertices is ‘-I’.

  • dict

    A dictionary with structure {coin_type : list_of_vertices}. Analogous to the one accepted by set_coin().