We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In graph.py::_tree_layout root_vertex is used before the corresponding check for None meaning the intended error message is never printed.
graph.py::_tree_layout
When a Graph with layout="tree" is used without specifying a root node, the appropriate ValueError should be thrown.
Create a Graph object with the "tree" layout and do not specify a root node.
from manim import * class ChangeGraphLayout(Scene): def construct(self): G = Graph([1, 2, 3, 4, 5], [(1, 2), (1, 3), (2, 4), (2, 5)], layout="tree") self.wait()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description of bug / unexpected behavior
In
graph.py::_tree_layout
root_vertex is used before the corresponding check for None meaning the intended error message is never printed.Expected behavior
When a Graph with layout="tree" is used without specifying a root node, the appropriate ValueError should be thrown.
How to reproduce the issue
Create a Graph object with the "tree" layout and do not specify a root node.
Code for reproducing the problem
The text was updated successfully, but these errors were encountered: