Skip to content

Commit

Permalink
Fix bug in PartitionEdge with mixed vertex types, generalize `parti…
Browse files Browse the repository at this point in the history
…tioned_vertices` to `AbstractGraph`
  • Loading branch information
mtfishman authored Jan 23, 2024
2 parents ccefa64 + 36de13c commit 569e829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Graphs/partitionedgraphs/partitionedge.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
struct PartitionEdge{V,E<:AbstractEdge{<:V}} <: AbstractPartitionEdge{V}
struct PartitionEdge{V,E<:AbstractEdge{V}} <: AbstractPartitionEdge{V}
edge::E
end

Expand Down
2 changes: 1 addition & 1 deletion src/Graphs/partitionedgraphs/partitioning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function partitioned_vertices(
end

function partitioned_vertices(
g::AbstractNamedGraph; npartitions=nothing, nvertices_per_partition=nothing, kwargs...
g::AbstractGraph; npartitions=nothing, nvertices_per_partition=nothing, kwargs...
)
vertex_partitions = partitioned_vertices(
parent_graph(g); npartitions, nvertices_per_partition, kwargs...
Expand Down

0 comments on commit 569e829

Please sign in to comment.