@staticmethod
    def _make_node_label(relation):
        columns = list()
        row = '<TR><TD ALIGN="left" PORT="{col_name}">{col_name}{pk}</TD></TR>'
        for column in sorted(relation.columns(), key=lambda x: x.position):
            columns.append(row.format(col_name=column.name,
                                      pk=' (PK)' if column.primary else ''))

        layout = ('<<TABLE BORDER="1" CELLBORDER="0" CELLSPACING="0">\n'
                  '<TR><TD BGCOLOR="lightblue">{table_name}</TD></TR>\n'
                  '{columns}</TABLE>>').format(table_name=relation.full_name,
                                               columns='\n'.join(columns))
        return layout
Get the config.
dataset/ETHPy150Open coursera/dataduct/dataduct/database/database.py/Database._make_node_label--crossover with--dataset/ETHPy150Open sdispater/orator/orator/commands/command.py/Command._get_config