Skip to content

Commit ddf9f17

Browse files
committed
Change base url
1 parent 1b8799e commit ddf9f17

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<img alt="grape-icon" src="https://github.com/li3zhen1/Grape/assets/45376537/4ab08ea1-22e6-4fe8-ab2b-99ae325b46a6" height="96">
2+
<img alt="grape-icon" src="https://github.com/swiftgraphs/Grape/assets/45376537/4ab08ea1-22e6-4fe8-ab2b-99ae325b46a6" height="96">
33
<h1 align="center">Grape</h1>
44

55
</div>
@@ -12,9 +12,9 @@
1212
<p align="center">A Swift library for graph visualization and efficient force simulation.</p>
1313

1414
<picture alt="example of grape">
15-
<source srcset="https://github.com/li3zhen1/Grape/assets/45376537/6703480d-5737-4a8e-bc08-92d8676456da" media="(prefers-color-scheme: dark)">
16-
<source srcset="https://github.com/li3zhen1/Grape/assets/45376537/22988cfb-8e01-49b7-a55b-b476fcd9de7c" media="(prefers-color-scheme: light)">
17-
<img src="https://github.com/li3zhen1/Grape/assets/45376537/22988cfb-8e01-49b7-a55b-b476fcd9de7c">
15+
<source srcset="https://github.com/swiftgraphs/Grape/assets/45376537/6703480d-5737-4a8e-bc08-92d8676456da" media="(prefers-color-scheme: dark)">
16+
<source srcset="https://github.com/swiftgraphs/Grape/assets/45376537/22988cfb-8e01-49b7-a55b-b476fcd9de7c" media="(prefers-color-scheme: light)">
17+
<img src="https://github.com/swiftgraphs/Grape/assets/45376537/22988cfb-8e01-49b7-a55b-b476fcd9de7c">
1818
</picture>
1919

2020
<br/>
@@ -27,11 +27,11 @@ This is a force directed graph visualizing [the network of character co-occurenc
2727

2828

2929

30-
https://github.com/li3zhen1/Grape/assets/45376537/d80dc797-1980-4755-85b9-18ee26e2a7ff
30+
https://github.com/swiftgraphs/Grape/assets/45376537/d80dc797-1980-4755-85b9-18ee26e2a7ff
3131

3232

3333

34-
Source code: [Miserables.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/Miserables.swift).
34+
Source code: [Miserables.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/Miserables.swift).
3535

3636

3737

@@ -43,11 +43,11 @@ This is the same graph as the first example, rendered in `RealityView`:
4343

4444

4545

46-
https://github.com/li3zhen1/Grape/assets/45376537/4585471e-2339-4aee-8f39-0c11fdfb6901
46+
https://github.com/swiftgraphs/Grape/assets/45376537/4585471e-2339-4aee-8f39-0c11fdfb6901
4747

4848

4949

50-
Source code: [ForceDirectedGraph3D/ContentView.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraph3D/ForceDirectedGraph3D/ContentView.swift).
50+
Source code: [ForceDirectedGraph3D/ContentView.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraph3D/ForceDirectedGraph3D/ContentView.swift).
5151

5252

5353
<br/>
@@ -57,11 +57,11 @@ Source code: [ForceDirectedGraph3D/ContentView.swift](https://github.com/li3zhen
5757

5858
Dynamical graph structure based on your input, with tap and drag gesture supports, all within 100 lines of view body.
5959

60-
https://github.com/li3zhen1/Grape/assets/45376537/7c75d367-d5a8-4316-813b-288b375f513b
60+
https://github.com/swiftgraphs/Grape/assets/45376537/7c75d367-d5a8-4316-813b-288b375f513b
6161

6262

6363

64-
Source code: [MermaidVisualization.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MermaidVisualization.swift)
64+
Source code: [MermaidVisualization.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MermaidVisualization.swift)
6565

6666
<br/>
6767

@@ -74,9 +74,9 @@ A 36x36 force directed lattice.
7474

7575
</summary>
7676

77-
https://github.com/li3zhen1/Grape/assets/45376537/5b76fddc-dd5c-4d35-bced-29c01269dd2b
77+
https://github.com/swiftgraphs/Grape/assets/45376537/5b76fddc-dd5c-4d35-bced-29c01269dd2b
7878

79-
Source code: [Lattice.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/Lattice.swift)
79+
Source code: [Lattice.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/Lattice.swift)
8080

8181
</details>
8282

@@ -89,9 +89,9 @@ An example rendering a ring with 60 vertices, with dragging gesture enabled.
8989

9090
</summary>
9191

92-
https://github.com/li3zhen1/Grape/assets/45376537/73213e7f-73ee-44f3-9b3e-7e58355045d2
92+
https://github.com/swiftgraphs/Grape/assets/45376537/73213e7f-73ee-44f3-9b3e-7e58355045d2
9393

94-
Source code: [MyRing.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MyRing.swift)
94+
Source code: [MyRing.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MyRing.swift)
9595
</details>
9696

9797
<br/>
@@ -104,14 +104,14 @@ Source code: [MyRing.swift](https://github.com/li3zhen1/Grape/blob/main/Examples
104104
To use Grape in an Xcode project by adding it to your project as a package:
105105

106106
```
107-
https://github.com/li3zhen1/Grape
107+
https://github.com/swiftgraphs/Grape
108108
```
109109

110110
To use Grape in a [SwiftPM](https://swift.org/package-manager/) project, add this to your `Package.swift`:
111111

112112
``` swift
113113
dependencies: [
114-
.package(url: "https://github.com/li3zhen1/Grape", from: "0.7.0")
114+
.package(url: "https://github.com/swiftgraphs/Grape", from: "0.7.0")
115115
]
116116
```
117117

@@ -244,7 +244,7 @@ for mySimulation in 0..<120 {
244244

245245
```
246246

247-
See [Example](https://github.com/li3zhen1/Grape/tree/main/Examples/ForceDirectedGraphExample) for more details.
247+
See [Example](https://github.com/swiftgraphs/Grape/tree/main/Examples/ForceDirectedGraphExample) for more details.
248248

249249
</details>
250250

@@ -284,7 +284,7 @@ See [Example](https://github.com/li3zhen1/Grape/tree/main/Examples/ForceDirected
284284

285285
#### Simulation
286286

287-
Grape uses simd to calculate position and velocity. Currently it takes **~0.005** seconds to iterate 120 times over the example graph(2D). (77 vertices, 254 edges, with manybody, center, collide and link forces. Release build on a M1 Max, [tested](https://github.com/li3zhen1/Grape/blob/main/Tests/ForceSimulationTests/MiserableGraphTest.swift) with command `swift test -c release`)
287+
Grape uses simd to calculate position and velocity. Currently it takes **~0.005** seconds to iterate 120 times over the example graph(2D). (77 vertices, 254 edges, with manybody, center, collide and link forces. Release build on a M1 Max, [tested](https://github.com/swiftgraphs/Grape/blob/main/Tests/ForceSimulationTests/MiserableGraphTest.swift) with command `swift test -c release`)
288288

289289
For 3D simulation, it takes **~0.008** seconds for the same graph and same configs.
290290

@@ -294,7 +294,7 @@ For 3D simulation, it takes **~0.008** seconds for the same graph and same confi
294294
<br/>
295295

296296
#### KDTree
297-
The `BufferedKDTree` from this package is **~22x** faster than `GKQuadtree` from Apple’s GameKit, according to this [test case](https://github.com/li3zhen1/Grape/blob/main/Tests/ForceSimulationTests/GKTreeCompareTest.swift). However, please note that comparing Swift structs with NSObjects is unfair, and their behaviors are different.
297+
The `BufferedKDTree` from this package is **~22x** faster than `GKQuadtree` from Apple’s GameKit, according to this [test case](https://github.com/swiftgraphs/Grape/blob/main/Tests/ForceSimulationTests/GKTreeCompareTest.swift). However, please note that comparing Swift structs with NSObjects is unfair, and their behaviors are different.
298298

299299

300300
<br/>

Sources/ForceSimulation/ForceSimulation.docc/CreatingASimulationWithBuiltinForces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ A diagram showing the relationships of `Kinetics`, `ForceProtocol` and `Simulati
6767

6868
In this example, we run our simulation in a 2D space (`SIMD2<Double>`). We explicitly create a ``SealedForce2D`` to make sure the force is in the same dimension as the Kinetics. The `Vector` in `Simulation` is inferred from the force we pass.
6969

70-
See [Examples](https://github.com/li3zhen1/Grape/tree/main/Examples) for example Xcode projects.
70+
See [Examples](https://github.com/swiftgraphs/Grape/tree/main/Examples) for example Xcode projects.

Sources/Grape/Grape.docc/CreatingAForceDirectedGraph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ struct MyGraph: View {
124124
Grape provides a set of interactions and events to help you respond to user interactions, including dragging, zooming, and tapping. They are mostly supported by default, and you can install your callbacks to respond to them.
125125

126126

127-
For detailed usages, please refer to [MermaidVisualization.swift](https://github.com/li3zhen1/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MermaidVisualization.swift).
127+
For detailed usages, please refer to [MermaidVisualization.swift](https://github.com/swiftgraphs/Grape/blob/main/Examples/ForceDirectedGraphExample/ForceDirectedGraphExample/MermaidVisualization.swift).
128128

129129

130-
@Video(source: "https://github.com/li3zhen1/Grape/assets/45376537/80d933c1-8b5b-4b1a-9062-9628577bd2e0", alt: "A screen record of mermaid")
130+
@Video(source: "https://github.com/swiftgraphs/Grape/assets/45376537/80d933c1-8b5b-4b1a-9062-9628577bd2e0", alt: "A screen record of mermaid")
131131

132132

133133
// TODO: Add examples

Sources/Grape/Views/ForceDirectedGraphModel.findNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extension ForceDirectedGraphModel {
3333
else { continue }
3434
let iPos = simulationContext.storage.kinetics.position[i]
3535

36-
/// https://github.com/li3zhen1/Grape/pull/62#issue-2753932460
36+
/// https://github.com/swiftgraphs/Grape/pull/62#issue-2753932460
3737
///
3838
/// ```swift
3939
/// let actualRadius = pow((iRadius2 * 0.5), 0.5) * 0.5

0 commit comments

Comments
 (0)