| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/pythran/__pycache__/ |
Upload File : |
o
�@�a� � @ s@ d Z G dd� de�ZG dd� de�Zdd� Zdd� Zd d
� ZdS )z�
Minimal directed graph replacement for networkx.DiGraph
This has the sole advantage of being a standalone file that doesn't bring any
dependency with it.
c @ sh e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zedd� �Z d
d� Z
dd� Zdd� Zdd� Z
dd� ZdS )�DiGraphc C s i | _ i | _d S �N)�
_adjacency�_edges��self� r �//usr/lib/python3/dist-packages/pythran/graph.py�__init__ s
zDiGraph.__init__c C s dd� | j | D �S )Nc s s � | ]}|V qd S r r )�.0�nr r r � <genexpr> s � z%DiGraph.successors.<locals>.<genexpr>�r �r �noder r r �
successors � zDiGraph.successorsc s � fdd�| j �� D �S )Nc 3 s � | ]\}}� |v r|V qd S r r )r
�k�v�r r r r s � z'DiGraph.predecessors.<locals>.<genexpr>)r �itemsr r r r �predecessors � zDiGraph.predecessorsc C s | j �|t� � d S r )r �
setdefault�setr r r r �add_node r zDiGraph.add_nodec K s2 | � |� | j�|t� ��|� || j||f<