def set_edge_state(self, edge_from, edge_to, state='default'):
        """ Mark a node as active by changing the attributes """
        assert hasattr(self, 'graph')

        edge = self.graph.get_edge(edge_from, edge_to)

        # Reset all the edges
        for e in self.graph.edges_iter():
            self.set_edge_style(e, 'default')

        try:
            self.set_edge_style(edge, state)
        except __HOLE__:
            self.set_edge_style(edge, 'default')
dataset/ETHPy150Open tyarkoni/transitions/transitions/extensions/diagrams.py/GraphMachine.set_edge_state