Skip to content

Commit 1888213

Browse files
authored
Merge pull request #1392 from robin-oval/fix/graph_from_edges
Fix Graph.from_edges
2 parents 45ba3b7 + 39baee9 commit 1888213

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
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
* Fixed args for `SceneObject` on Grasshopper `Draw` component.
3030
* Replaced use of `Rhino.Geometry.VertexColors.SetColors` with a for loop and `SetColor` in `compas_ghpyton` since the former requires a `System.Array`.
3131
* Fixed `Mesh.face_circle`.
32+
* Fixed `Graph.from_edges`.
3233

3334
### Removed
3435

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)