Skip to content

Commit 39baee9

Browse files
committed
Fix Graph.from_edges
Constructor from_edges for Graph was not returning the graph
1 parent d3306c0 commit 39baee9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
* Fixed args for `SceneObject` on Grasshopper `Draw` component.
1818
* Replaced use of `Rhino.Geometry.VertexColors.SetColors` with a for loop and `SetColor` in `compas_ghpyton` since the former requires a `System.Array`.
1919
* Fixed `Mesh.face_circle`.
20+
* Fixed `Graph.from_edges`.
2021

2122
### Removed
2223

src/compas/datastructures/graph/graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def from_edges(cls, edges):
205205
if v not in graph.node:
206206
graph.add_node(v)
207207
graph.add_edge(u, v)
208+
return graph
208209

209210
@classmethod
210211
def from_networkx(cls, graph):

0 commit comments

Comments
 (0)