Viewing: graph.cpython-36.pyc
3 �d[e� � @ s d dl mZ G dd� d�ZdS )� )�dequec @ sR e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z ddd�ZdS )�Graphz� Simple oriented graph structure G = (V, E) where G is graph, V set of vertices and E list of edges. E = (tail, head) where tail and head are vertices c C s t � | _g | _t� | _d S )N)�set�vertices�edges�dict�_adj)�self� r �/usr/lib/python3.6/graph.py�__init__ s zGraph.__init__c C s | j j|� g | j|<