A community-maintained Python framework for creating mathematical animations.
Fixed a bug with animation of removal of edges from a :class:`.Graph` (#2576)
Benjamin Hackla038288ac647
diff --git a/manim/mobject/graph.py b/manim/mobject/graph.pyindex 860543032..20d430a5a 100644--- a/manim/mobject/graph.py+++ b/manim/mobject/graph.py@@ -1062,9 +1062,7 @@ class Graph(VMobject, metaclass=ConvertToOpenGL):animation = anim_args.pop("animation", Uncreate)mobjects = self.remove_edges(*edges)- return AnimationGroup(- *(animation(mobj, **anim_args) for mobj in mobjects), group=self- )+ return AnimationGroup(*(animation(mobj, **anim_args) for mobj in mobjects))@staticmethoddef from_networkx(nxgraph: nx.classes.graph.Graph, **kwargs) -> Graph: