We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is a minimal example:
The following is working:
import igraph as ig import gravis as gv lnames = ['0', '1'] edgelist = [('0', '1')] graph = ig.Graph(len(lnames), vertex_attrs={'name': lnames}) graph.add_edges(edgelist) gv.vis(graph)
The following is not:
class mygraph(ig.Graph): def __init__(self, lnames, edgelist): super().__init__(len(lnames), vertex_attrs={'name': lnames}) self.add_edges(edgelist) graph = mygraph(lnames, edgelist) gv.vis(graph)
This returns
ValueError: The provided data seems not to be in a valid graph format.
Is there a workaround?
The text was updated successfully, but these errors were encountered:
A ugly workaround is
graph = mygraph(lnames, edgelist) print(graph.__class__) graph.__class__ = ig.Graph gv.vis(graph)
But this is really ugly.
Sorry, something went wrong.
No branches or pull requests
Here is a minimal example:
The following is working:
The following is not:
This returns
Is there a workaround?
The text was updated successfully, but these errors were encountered: