File: //proc/1233/root/usr/lib/python3/dist-packages/samba/__pycache__/graph.cpython-310.pyc
o
�/ao � @ s8 d dl mZ d dlZd dlmZmZ dZdd� ZdAdd �ZdBdd�Z g dd
dfdd�Z
dCdd�Zejej
fejejejejejd�ejej
fejejejejejd�e�d�e�d�fejddd�e�d�e�d�e�d�e�d�e�d�e�d�e�d�fejejd�e�d �e�d!�fejddd�ejddd�ejddd�ejddd�ejddd�ejddd�ejddd�ejddd�fejejd�d"d#d#d#d#d#d�d$�Zd%d&d'd(d)d*d+�d,d)d-d.d)d/d+�d0�Zd1d2� Zd3d4� Z dDd5d6�ZdEd8d9�Zd:d;� Z < = > dFd?d@�ZdS )G� )�colourN)�cycle�groupby�
c C s� t | �dk r| S | �dd�} g }| �d�D ]F}t |�dkrTd|dd� v r.|�dd�\}}nt |�d }t |�| }|d |� ||d � }}|�|d � t |�dks|r[|�|� qd
�|�S )z�Break DNs over multiple lines, for better shaped and arguably more
readable nodes. We try to split after commas, and if necessary
after hyphens or failing that in arbitrary places.� �,z,
�
� �-� � Nz\n)�len�replace�split�append�join)�s�pieces�p�q�n�b� r �-/usr/lib/python3/dist-packages/samba/graph.py�reformat_graph_label s"