Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/__pycache__/vcgutils.cpython-37.pyc

B

A!p\�@s,dZdddddddd�Zd	d	ed
ed
ed
dddeded
ddedddddedededededededededededd�Zd	d	ed
ed
ed
dddeded
ddddd�Zd	d	d	eddd	ed
ed
ed
ed
ddedededdddd�ZGdd�d�ZdS)aGFunctions to generate files readable with Georg Sander's vcg
(Visualization of Compiler Graphs).

You can download vcg at http://rw4.cs.uni-sb.de/~sander/html/gshome.html
Note that vcg exists as a debian package.

See vcg's documentation for explanation about the different values that
maybe used for the functions parameters.
)ZdfsZtreeZminbackwardZ
left_to_rightZ
right_to_leftZ
top_to_bottomZ
bottom_to_topZmaxdepthZmaxdepthslowZmindepthZmindepthslowZ	mindegreeZminindegreeZminoutdegreeZ	maxdegreeZmaxindegreeZmaxoutdegree)�yes�no) ZblackZwhiteZblueZredZgreenZyellowZmagentaZ	lightgreyZcyanZdarkgreyZdarkblueZdarkredZ	darkgreenZ
darkyellowZdarkmagentaZdarkcyanZgoldZ	lightblueZlightredZ
lightgreenZlightyellowZlightmagentaZ	lightcyanZlilacZ	turquoiseZ
aquamarineZkhakiZpurpleZyellowgreenZpinkZorangeZorchid)ZboxZellipseZrhombZtriangle)�centerZleft_justifyZ
right_justify)Zsolid�line�none)Z
continuousZdashedZdottedZ	invisible)�algos�booleans�colors�shapes�	textmodes�arrowstyles�
linestyles�r�r
r	rr)�title�label�color�	textcolor�bordercolor�width�height�borderwidth�textmode�shape�shrink�stretchZorientation�vertical_order�horizontal_orderZxspaceZyspaceZlayoutalgorithmZlate_edge_labelsZdisplay_edge_labelsZdirty_edge_labelsZ
finetuningZmanhattan_edgesZsmanhattan_edgesZport_sharingZedgesZnodesZsplines)rrrrrrrrrrrrrrrr)Z
sourcenameZ
targetnamerZ	linestyle�classZ	thicknessrrZ
arrowcolorZbackarrowcolorZ	arrowsizeZ
backarrowsizeZ
arrowstyleZbackarrowstyler�priority�anchorrc@sReZdZdZdd�Zdd�Zdd�Zdd	�Zddd�Zd
d�Z	dd�Z
dd�ZdS)�
VCGPrinterzA vcg graph writer.
    cCs||_d|_dS)N�)�_stream�_indent)�selfZ
output_stream�r%�J/opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/vcgutils.py�__init__�szVCGPrinter.__init__cKs,|j�d|j�|��|jtf|�dS)zopen a vcg graph
        z
%sgraph:{
N)r"�writer#�_inc_indent�_write_attributes�GRAPH_ATTRS)r$�argsr%r%r&�
open_graph�szVCGPrinter.open_graphcCs|��|j�d|j�dS)zclose a vcg graph
        z%s}
N)�_dec_indentr"r(r#)r$r%r%r&�close_graph�szVCGPrinter.close_graphcKs4|j�d|j|f�|jtf|�|j�d�dS)zdraw a node
        z%snode: {title:"%s"z}
N)r"r(r#r*�
NODE_ATTRS)r$rr,r%r%r&�node�szVCGPrinter.noder!cKs8|j�d|j|||f�|jtf|�|j�d�dS)z-draw an edge from a node to another.
        z*%s%sedge: {sourcename:"%s" targetname:"%s"z}
N)r"r(r#r*�
EDGE_ATTRS)r$Z	from_nodeZto_nodeZ	edge_typer,r%r%r&�edge�s
zVCGPrinter.edgec	Ks�x�|��D]�\}}y||}Wn(tk
rFtd||��f��YnX|sf|j�d|j||f�q
|dkr�|j�d|j|t|�f�q
||kr�|j�d|j||f�q
td|||f��q
WdS)z-write graph, node or edge attributes
        z/no such attribute %s
possible attributes are %sz
%s%s:"%s"
rz%s%s:%s
z=value %s isn't correct for attribute %s
correct values are %sN)�items�KeyError�	Exception�keysr"r(r#�int)r$Zattributes_dictr,�key�valueZ_typer%r%r&r*�s zVCGPrinter._write_attributescCsd|j|_dS)zincrement indentation
        z  %sN)r#)r$r%r%r&r)�szVCGPrinter._inc_indentcCs|jdd�|_dS)zdecrement indentation
        N���)r#)r$r%r%r&r.�szVCGPrinter._dec_indentN)r!)�__name__�
__module__�__qualname__�__doc__r'r-r/r1r3r*r)r.r%r%r%r&r �s
r N)r?Z	ATTRS_VALr+r0r2r r%r%r%r&�<module>s�!