def NameAndAttribute(line):
    """
    Split name and attribute.

    :param line: DOT file name
    :return: name string and attribute string
    """
    split_index = line.index("[")
    name   = line[:split_index]
    attr   = line[split_index:]
    return name, attr