![]() ![]() For example to turn off a number of or all of the links between children. I'm also wondering whether it would be possible have a function to "pause" the links between agents. results in a fully connected network which I don't want Layout-circle (sort turtles) max-pxcor - 8 Even if you have any thoughts on a better algorithm but not code it would be very welcome too breed This is only a small section of the code but its been driving me crazy for days nowĮvery time I try something it results in errors and I'm all out of ideas and the will to live. ![]() If anyone could help me out I'd be insanely grateful. I can't work out how to ask the current turtle what breed it is, so that I can link to the right amount of the right breeds. If the first node is a toddler and it connects to an adult, I will need to decrement the number of toddlers that the adult node will try to connect to when I get to it too, if that makes sense. If the turtle is of the breed toddler for example it will have 10 links in total, 5 of which are to other toddlers, 2 to children, 2 to adults and 1 to over45s. I need to ask each agent (there will be about 800 in total) to connect to a certain amount of each type of other agent (so long as that other agent isn't full up). The relevant code is below with the function in question being the "create-network" one. Or I'm over complicating them, I'm not sure. ![]() I only started using breeds in my code in the last week and I haven't fully worked them out yet. I'm having trouble with how to put it together because I'm still not fully familiar with some parts of NetLogo's syntax. A group of people of different age groups who are connected by links. I'm trying to put together a "social network" of sorts in NetLogo. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |