-
Notifications
You must be signed in to change notification settings - Fork 15
module submission: 2024-Jarigsma-001 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
f091cca
Create file for NetLogo implementation
AmberHam f3cf1d8
Update Creation of Network with Preferential Attachment
AmberHam c272b16
Create CHANGELOG.md
AmberHam 02df21b
Create LICENSE
AmberHam 203536d
Create NASSA.yml
AmberHam 3c5dc85
Create README.md
AmberHam 124f155
Create references.bib
AmberHam eedf452
Rename Creation of Network with Preferential Attachment to Preferenti…
AmberHam 2cfb343
Rename PreferentialAttachment.nlogo to preferential_attachment.nlogo
AmberHam 90f5d13
Update preferential_attachment.nlogo
AmberHam 5684d53
Update preferential_attachment.nlogo
AmberHam 55153aa
Create framework_preferential_attachment
AmberHam 447b051
Rename framework_preferential_attachment to framework_preferential_at…
AmberHam 5e68782
Update framework_preferential_attachment.nlogo
AmberHam 474cc89
Update framework_preferential_attachment.nlogo
AmberHam 24f0985
Update preferential_attachment.nlogo
AmberHam 587ffb9
Update preferential_attachment.nlogo
AmberHam 72b624e
Update LICENSE
AmberHam 0f2635c
Update references.bib
AmberHam e98624d
Update LICENSE
AmberHam f8bc784
Update preferential_attachment.nlogo
AmberHam 2e8798f
Update framework_preferential_attachment.nlogo
AmberHam ec04b44
Update framework_preferential_attachment.nlogo
AmberHam 12fe329
Update framework_preferential_attachment.nlogo
AmberHam 4906a27
Add files via upload
AmberHam aad2e72
Delete 2024-Jarigsma-001/netlogo_implementation/preferential_attachme…
AmberHam 6f9fd4b
Update references.bib
AmberHam c95069a
Update LICENSE
AmberHam 0189955
Update NASSA.yml
AmberHam c263d05
Update NASSA.yml
AmberHam 762d5f1
Update NASSA.yml
AmberHam fb7393e
Update README.md
AmberHam efc4017
Update README.md
AmberHam 8a7acfc
Delete 2024-Jarigsma-001/netlogo_implementation/framework_preferentia…
AmberHam f8d4956
Delete 2024-Jarigsma-001/netlogo_implementation/Network Creation (Pre…
AmberHam 8e31c77
Create delete
AmberHam e71ab0c
Add files via upload
AmberHam 1ad2752
Delete 2024-Jarigsma-001/netlogo_implementation/delete
AmberHam e860235
Update NASSA.yml
AmberHam d70071e
Update references.bib
AmberHam b1f6d0b
Update NASSA.yml
AmberHam d9354f4
Update LICENSE
AmberHam 6ce6452
Update NASSA.yml
AmberHam f7b62e2
Update README.md
AmberHam a216bcc
Update README.md
AmberHam dfb7d78
Delete 2024-Jarigsma-001/netlogo_implementation/Preferential Attachme…
AmberHam 25d8cd0
Add files via upload
AmberHam 5c8c5cb
Delete 2024-Jarigsma-001/Preferential Attachment Network.nlogo
AmberHam 0e6459f
Create delete
AmberHam 58dfd8f
Add files via upload
AmberHam d879908
Delete 2024-Jarigsma-001/netlogo_implementation/delete
AmberHam 50b4613
Update NASSA.yml
AmberHam 98a6663
Update README.md
AmberHam 673c39b
module submission: 2024-Jarigsma-001
AmberHam d2ec83f
Update 2024-Jarigsma-001/NASSA.yml
AmberHam 0e69719
Update NASSA.yml
Andros-Spica 4837b55
Update NASSA.yml
Andros-Spica 3c092ba
Update NASSA.yml
Andros-Spica a01c0dd
Update NASSA.yml
Andros-Spica 566f1f6
Update references.bib
Andros-Spica 64dcb83
Update CHANGELOG.md
Andros-Spica 40163b2
Update Preferential Attachment Network.nlogo
Andros-Spica 72f0965
Update Preferential Attachment Network.nlogo
Andros-Spica d4be323
Update 2024-Jarigsma-001/README.md
AmberHam c905a86
Update NASSA.yml
AmberHam b6b2258
Update Preferential Attachment Network.nlogo
AmberHam 36f784e
Update README.md
AmberHam bce4f64
Update README.md
AmberHam b8fb5ed
Update references.bib
Andros-Spica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## 1.0.0 | ||
| - Creation of the module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| MIT License | ||
|
|
||
| Copyright 2024 Amber Esha Jarigsma | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| id: 2024-Jarigsma-001 | ||
| nassaVersion: 0.5.1 | ||
| moduleType: Algorithm | ||
| title: Preferential Attachment Network | ||
| moduleVersion: 1.0.0 | ||
| contributors: | ||
| - name: Jarigsma, Amber Esha | ||
| roles: [ "Copyright Holder", "Author", "Creator"] | ||
| email: a.e.jarigsma@student.vu.nl | ||
| orcid: 0009-0008-9842-7913 | ||
| lastUpdateDate: 2024-11-28 | ||
| description: > | ||
| This NetLogo algorithm simulates network formation using preferential attachment. New nodes are more likely to connect to existing nodes with higher degrees, reflecting a "lottery" system where popular nodes attract more links. | ||
| references: | ||
| moduleReferences: [ Wilensky-2005 ] | ||
| inputs: | ||
| - name: initial-number-nodes | ||
| type: integer | ||
| unit: nodes | ||
| description: the number of unconnected nodes existing before preferential attachment is applied. | ||
| outputs: | ||
| - name: network | ||
| type: object (agent and link sets) | ||
| description: nodes (turtles, breed nodes) and edges (links) between nodes, formed with iterations of preferential attachment. | ||
| domainKeywords: | ||
| regions: | ||
| - global | ||
| subjects: | ||
| - social networks | ||
| modellingKeywords: | ||
| - agent interaction | ||
| - preferential attachment | ||
| - network dynamics | ||
| programmingKeywords: | ||
| - network simulation | ||
| - stochastic | ||
| implementations: | ||
| - language: NetLogo | ||
| softwareDependencies: | ||
| - NetLogo >= v6.4.0 | ||
| license: MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Preferential Attachment Network | ||
| *by Amber Esha Jarigsma* | ||
|
|
||
| This algorithm is a version of preferential attachment algorithm, generating networks where nodes (agents) are connected based on their existing number of links, simulating the "rich-get-richer" effect. It uses a lottery-style partner selection method to form links between nodes, favoring those with more existing connections. This structure can model social networks, trade networks in ancient societies, settlement hierarchies, or other real-world systems where growth follows a preferential attachment pattern. | ||
|
|
||
| ## License | ||
| **MIT** | ||
|
|
||
| ## References | ||
| For an alternative approach to implementing a preferential attachment network, see: | ||
| Wilensky, U. (2005). NetLogo Preferential Attachment model. http://ccl.northwestern.edu/netlogo/models/PreferentialAttachment. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. | ||
Andros-Spica marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| In this model, partner selection is determined through the selection of a random link, with one of the two nodes at either end of the link serving as the new partner. This method simplifies the implementation by leveraging existing network properties, eliminating the need to explicitly calculate or store node degrees. In contrast, the implementation described here generates a weighted list of nodes based on their degrees, from which a partner is selected. While Wilensky’s approach reduces computational complexity, it sacrifices some of the flexibility and reusability offered by this more modular design, which separates key functions and explicitly tracks node attributes. | ||
|
|
||
| Additionally, the nw extension in NetLogo provides a built-in procedure, nw:generate-preferential-attachment, for generating scale-free networks based on the Barabási–Albert algorithm. However, as this is part of an extension and not written in NetLogo's native language, it may be less transparent and customisable compared to explicit implementations. | ||
|
|
||
| This implementation draws inspiration from Wilensky (2005) and the foundational work it cites. For further background on preferential attachment and scale-free networks, see: | ||
|
|
||
| Albert-László Barabási. Linked: The New Science of Networks. Perseus Publishing, Cambridge, Massachusetts, pages 79–92. | ||
|
|
||
| Albert-László Barabási & Reka Albert. "Emergence of Scaling in Random Networks." Science, Vol. 286, Issue 5439, 15 October 1999, pages 509–512. | ||
|
|
||
| ## Further information | ||
| This model is an algorithm implemented in NetLogo. | ||
| Users can choose how many (unattached) nodes to begin the algorithm with. | ||
| Node size is proportional to the number of links the node has. | ||
|
|
||
| <img width="622" alt="Screenshot 2024-11-15 at 22 28 25" src="https://github.com/user-attachments/assets/b7b7b9fa-aeb2-49ce-bd3d-ea9482c05f2f"> | ||
Andros-Spica marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.