Skip to content

Generated bubble graph do not validate with bubbletools #2

@mariesosa

Description

@mariesosa

I generated a bubble graph with:

import powergrasp
with open("graph.bbl", "w") as fd:
    for line in powergrasp.compress_by_cc("graph.gml"):
        fd.write(line + '\n')

Then, I wanted to check if it generated a correct bubble file with bubbletools:

from bubbletools import validate
for log in validate(open("graph.bbl", "r"), profiling=True):
    print(log)

I got the following error:

ValueError: Input line "# CONNECTED COMPONENT 1
" is not bubble formatted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions