diff --git a/CHANGELOG.md b/CHANGELOG.md index b12451afb117..1333298b9a82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fixed args for `SceneObject` on Grasshopper `Draw` component. * Replaced use of `Rhino.Geometry.VertexColors.SetColors` with a for loop and `SetColor` in `compas_ghpyton` since the former requires a `System.Array`. * Fixed `Mesh.face_circle`. +* Fixed `Graph.from_edges`. ### Removed diff --git a/src/compas/datastructures/graph/graph.py b/src/compas/datastructures/graph/graph.py index a0fdad75c846..951ffd85de39 100644 --- a/src/compas/datastructures/graph/graph.py +++ b/src/compas/datastructures/graph/graph.py @@ -205,6 +205,7 @@ def from_edges(cls, edges): if v not in graph.node: graph.add_node(v) graph.add_edge(u, v) + return graph @classmethod def from_networkx(cls, graph):