Skip to content
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

Does anything flow on criminal networks? #101

Open
mariopaolucci opened this issue Apr 22, 2019 · 1 comment
Open

Does anything flow on criminal networks? #101

mariopaolucci opened this issue Apr 22, 2019 · 1 comment
Labels
UCSC Issues that require input from UCSC

Comments

@mariopaolucci
Copy link
Contributor

My answer is no, that is, we only use it to keep track of crimes - but a confirmation from UCSC would be good.

@mariopaolucci mariopaolucci added the UCSC Issues that require input from UCSC label Apr 22, 2019
@mariopaolucci
Copy link
Contributor Author

Crime partnership does (meta-links are used for accomplice search):

PROTON-OC/PROTON-OC.nlogo

Lines 1164 to 1182 in bc63f88

to update-meta-links [ agents ]
nw:with-context agents links [ ; limit the context to the agents in the radius of interest
ask agents [
ask other nw:turtles-in-radius 1 [
create-meta-link-with myself [ ; if that link already exists, it won't be re-created
let w 0
if [ family-link-with other-end ] of myself != nobody [ set w w + 1 ]
if [ friendship-link-with other-end ] of myself != nobody [ set w w + 1 ]
if [ school-link-with other-end ] of myself != nobody [ set w w + 1 ]
if [ professional-link-with other-end ] of myself != nobody [ set w w + 1 ]
if [ criminal-link-with other-end ] of myself != nobody [
set w w + [ num-co-offenses ] of [ criminal-link-with other-end ] of myself
]
set dist 1 / w; the distance cost of the link is the inverse of its weight
]
]
]
]
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UCSC Issues that require input from UCSC
Projects
None yet
Development

No branches or pull requests

1 participant