java.lang.Objectorg.nlogo.agent.NetworkMetrics
public class NetworkMetrics
Method Summary | |
---|---|
double |
averagePathLength(AgentSet nodeSet,
AgentSet linkBreed)
Calculates the average shortest-path length between all (distinct) pairs of nodes in the given nodeSet, by traveling along links of the given linkBreed. |
Set<Turtle> |
inNetworkRadius(Turtle sourceNode,
AgentSet sourceSet,
double radius,
AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, going up to radius layers out, and only collecting nodes that are members of sourceSet. |
int |
networkDistance(Turtle sourceNode,
Turtle destNode,
AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the distance to destNode. |
LogoList |
networkShortestPathLinks(org.nlogo.util.MersenneTwisterFast random,
Turtle sourceNode,
Turtle destNode,
AgentSet linkBreed)
|
LogoList |
networkShortestPathNodes(org.nlogo.util.MersenneTwisterFast random,
Turtle sourceNode,
Turtle destNode,
AgentSet linkBreed)
This method performs a BFS from the sourceNode, following the network imposed by the given linkBreed, to find the shortest path to destNode. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Set<Turtle> inNetworkRadius(Turtle sourceNode, AgentSet sourceSet, double radius, AgentSet linkBreed)
public int networkDistance(Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
public LogoList networkShortestPathNodes(org.nlogo.util.MersenneTwisterFast random, Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
public LogoList networkShortestPathLinks(org.nlogo.util.MersenneTwisterFast random, Turtle sourceNode, Turtle destNode, AgentSet linkBreed)
public double averagePathLength(AgentSet nodeSet, AgentSet linkBreed)