[Experimental] InputGraphのアルゴリズムの改善 (#48)

* add correct graph

* CorrectGraphの概念を導入し、混乱をある程度解消

* Additioanl edge cases

* fix some test

* Now lookup graph perfectly works
This commit is contained in:
Miwa / Ensan
2024-02-27 00:52:25 +09:00
committed by GitHub
parent 0795b8cf84
commit 85a15051b4
10 changed files with 1078 additions and 568 deletions

View File

@ -36,7 +36,8 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0")
.package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-collections", from: "1.0.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@ -87,7 +88,9 @@ let package = Package(
),
.testTarget(
name: "KanaKanjiConverterModuleWithDefaultDictionaryTests",
dependencies: ["KanaKanjiConverterModuleWithDefaultDictionary"],
dependencies: ["KanaKanjiConverterModuleWithDefaultDictionary",
.product(name: "Collections", package: "swift-collections")
],
swiftSettings: swiftSettings
)
]