Skip to content

Conversation

peternowee
Copy link
Owner

Example for discussion in pydot#265.

Comment on lines 36 to +261
'showboxes',
'style',
'tailURL',
'tailclip',
'tailhref',
'taillabel',
'tailport',
'tailtarget',
'tailtooltip',
'target',
'tooltip',
'weight',
'rank',
}


NODE_ATTRIBUTES = {
'URL', 'color', 'colorscheme', 'comment',
'distortion', 'fillcolor', 'fixedsize', 'fontcolor', 'fontname',
'fontsize', 'group', 'height', 'id', 'image', 'imagescale', 'label',
'labelloc', 'layer', 'margin', 'nojustify', 'orientation', 'penwidth',
'peripheries', 'pin', 'pos', 'rects', 'regular', 'root', 'samplepoints',
'shape', 'shapefile', 'showboxes', 'sides', 'skew', 'sortv', 'style',
'target', 'tooltip', 'vertices', 'width', 'z',
'URL',
'color',
'colorscheme',
'comment',
'distortion',
'fillcolor',
'fixedsize',
'fontcolor',
'fontname',
'fontsize',
'group',
'height',
'id',
'image',
'imagescale',
'label',
'labelloc',
'layer',
'margin',
'nojustify',
'orientation',
'penwidth',
'peripheries',
'pin',
'pos',
'rects',
'regular',
'root',
'samplepoints',
'shape',
'shapefile',
'showboxes',
'sides',
'skew',
'sortv',
'style',
'target',
'tooltip',
'vertices',
'width',
'z',
# The following are attributes dot2tex
'texlbl', 'texmode'
'texlbl',
'texmode',
}


CLUSTER_ATTRIBUTES = {
'K', 'URL', 'bgcolor', 'color', 'colorscheme',
'fillcolor', 'fontcolor', 'fontname', 'fontsize', 'label', 'labeljust',
'labelloc', 'lheight', 'lp', 'lwidth', 'nojustify', 'pencolor',
'penwidth', 'peripheries', 'sortv', 'style', 'target', 'tooltip'
'K',
'URL',
'bgcolor',
'color',
'colorscheme',
'fillcolor',
'fontcolor',
'fontname',
'fontsize',
'label',
'labeljust',
'labelloc',
'lheight',
'lp',
'lwidth',
'nojustify',
'pencolor',
'penwidth',
'peripheries',
'sortv',
'style',
'target',
'tooltip',
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, so many new lines.

return node_str

if node_port_idx > 0:
a = node_str[:node_port_idx]
b = node_str[node_port_idx+1:]
b = node_str[node_port_idx + 1 :]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

This pull request has conflicts, please resolve those so that the changes can be evaluated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant