Skip to content

Commit

Permalink
Merge pull request #1392 from robin-oval/fix/graph_from_edges
Browse files Browse the repository at this point in the history
Fix Graph.from_edges
  • Loading branch information
gonzalocasas authored Oct 2, 2024
2 parents 45ba3b7 + 39baee9 commit 1888213
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 @@ -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

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 1888213

Please sign in to comment.