Skip to content

Commit 7faa68a

Browse files
authored
Fixes issue where nodes were not added to existing cluster (#16)
* Fixes issue where nodes were not added to existing cluster * Adds missing dependency
1 parent c31b0da commit 7faa68a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ let package = Package(
4545

4646
// Sources/Library/Commands
4747
.target(name: "GraphCommand", dependencies: [
48+
"DirectedGraphMapper",
4849
"DirectedGraphWriter",
4950
"PackageGraphBuilder",
5051
"PackageSwiftFileParser",

Sources/Library/Graphing/DirectedGraph/DirectedGraph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class DirectedGraph: Equatable {
2727
for node in cluster.nodes {
2828
existingCluster.addUniqueNode(node)
2929
}
30-
return cluster
30+
return existingCluster
3131
} else {
3232
clusters.append(cluster)
3333
return cluster

0 commit comments

Comments
 (0)