Skip to content

Commit

Permalink
Fix Graph.from_edges
Browse files Browse the repository at this point in the history
Constructor from_edges for Graph was not returning the graph
  • Loading branch information
robin-oval committed Oct 1, 2024
1 parent d3306c0 commit 39baee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

Expand Down
1 change: 1 addition & 0 deletions src/compas/datastructures/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 39baee9

Please sign in to comment.